forked from such-gitea/wownero-lws
Update .gitea/workflows/build.yaml
Some checks failed
Build Wowlet / build-macos (push) Failing after 34s
Some checks failed
Build Wowlet / build-macos (push) Failing after 34s
This commit is contained in:
@@ -7,27 +7,27 @@ jobs:
|
||||
build-macos:
|
||||
runs-on: macos-latest # Runs on your Mac Mini
|
||||
steps:
|
||||
- name: Manual Checkout (Debug)
|
||||
- name: Manual Checkout (Local)
|
||||
env:
|
||||
# This token is automatically provided by Gitea to allow cloning
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
# 1. Clean the workspace to ensure a fresh start
|
||||
echo "Cleaning workspace..."
|
||||
rm -rf *
|
||||
|
||||
# 2. Force Git to use HTTPS (Fixes 'hangs' if submodules use git:// or git@)
|
||||
# 1. (Optional) Safety config just in case
|
||||
git config --global --add safe.directory '*'
|
||||
|
||||
# 2. Clone using LOCALHOST (Port 3000)
|
||||
# We switch to HTTP to bypass SSL/Certificate errors entirely
|
||||
echo "Cloning from Localhost..."
|
||||
git clone http://oauth2:$GITHUB_TOKEN@localhost:3000/${{ github.repository }}.git .
|
||||
|
||||
# 3. Update Submodules
|
||||
# We keep the forced HTTPS for submodules (since they live on GitHub/Codeberg)
|
||||
# But we do NOT force it for the main repo anymore.
|
||||
git config --global url."https://github.com/".insteadOf "git@github.com:"
|
||||
git config --global url."https://github.com/".insteadOf "git://github.com/"
|
||||
git config --global url."https://codeberg.org/".insteadOf "git@codeberg.org:"
|
||||
|
||||
# 3. Clone the main repo from YOUR Gitea
|
||||
# We use the token to authenticate seamlessly
|
||||
echo "Cloning main repository..."
|
||||
git clone https://user:$GITHUB_TOKEN@git.such.software/${{ github.repository }}.git .
|
||||
|
||||
# 4. Manually update submodules
|
||||
# This will show us EXACTLY which submodule fails if one is broken
|
||||
|
||||
echo "Initializing submodules..."
|
||||
git submodule update --init --recursive
|
||||
|
||||
|
||||
Reference in New Issue
Block a user