Skip to content

Commit

Permalink
Cross compile different architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
delasy committed Feb 4, 2025
1 parent 2fd2bbe commit 10072c1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,22 @@ jobs:
config:
- os: ubuntu-20.04
platform: macos
arch: x86_64
- os: ubuntu-22.04
platform: macos
arch: x86_64
- os: ubuntu-24.04
platform: macos
arch: x86_64
- os: ubuntu-20.04
platform: macos
arch: arm64
- os: ubuntu-22.04
platform: macos
arch: arm64
- os: ubuntu-24.04
platform: macos
arch: arm64
- os: ubuntu-20.04
platform: linux
- os: ubuntu-22.04
Expand All @@ -42,7 +54,7 @@ jobs:
- run: sudo apt-get install mingw-w64 ninja-build
- run: curl -fsSL https://cdn.thelang.io/deps.tar.gz | sudo tar -C /usr/local -xz
- if: matrix.config.platform == 'macos'
run: echo "THE_DEPS_DIR=/usr/local/the/cross-compile/${{ matrix.config.platform }}/$(uname -m)" >> $GITHUB_ENV
run: echo "THE_DEPS_DIR=/usr/local/the/cross-compile/${{ matrix.config.platform }}/${{ matrix.config.arch }}" >> $GITHUB_ENV
- if: matrix.config.platform != 'macos'
run: echo "THE_DEPS_DIR=/usr/local/the/cross-compile/${{ matrix.config.platform }}" >> $GITHUB_ENV
- run: echo "/usr/local/the/osxcross/bin" >> $GITHUB_PATH
Expand Down

0 comments on commit 10072c1

Please sign in to comment.