Skip to content

Commit

Permalink
+ added arm64-macos crosscompilation to the CI (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickysn authored Jan 24, 2024
1 parent 5752384 commit 141c1ac
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
cpu: amd64
nim_cpu: amd64
nimble_cpu: amd64
- os: macos
triple: aarch64-apple-darwin14
name: macos
cpu: arm64
nim_cpu: arm64
nimble_cpu: aarch64
- os: windows
triple: x86_64-w64-mingw32
name: windows
Expand Down Expand Up @@ -88,7 +94,11 @@ jobs:
run: |
echo i386.linux.gcc.exe = \"i686-linux-gnu-gcc\" >> nimlangserver.nim.cfg
echo i386.linux.gcc.linkerexe = \"i686-linux-gnu-gcc\" >> nimlangserver.nim.cfg
nimble build -d:release --cpu:${{ matrix.target.nim_cpu }}
if [ ${{ matrix.target.triple }} = 'aarch64-apple-darwin14' ]; then
nimble build -d:release --cpu:arm64 --os:arm64 --clang.exe=oa64-clang --clang.linkerexe=oa64-clang passC:'-mcpu=apple-a13' --passL:'-mcpu=apple-a13'
else
nimble build -d:release --cpu:${{ matrix.target.nim_cpu }}
fi
- name: Compress the Nim Language Server binaries
run: |
Expand Down

0 comments on commit 141c1ac

Please sign in to comment.