Skip to content

Commit

Permalink
Add support for arm64 on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kraptor committed Nov 7, 2024
1 parent cf7b59b commit c12dc5f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,32 @@ jobs:
tag: ${{ github.ref }}
asset_name: choosenim-${{ env.VERSION }}_macosx_arm
file: ${{ runner.workspace }}/choosenim/bin/choosenim

build-linux_arm64:
runs-on: [runs-on, runner=2cpu-linux-arm64, "run-id=${{ github.run_id }}"]
steps:
- uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build binary
run: |
git config --global --add safe.directory /__w/choosenim/choosenim
nimble install -y
nimble build -d:release -d:staticBuild
ls bin/*
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Upload binaries to release/tag
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
overwrite: true
tag: ${{ github.ref }}
asset_name: choosenim-${{ env.VERSION }}_linux_arm64
file: ${{ runner.workspace }}/choosenim/bin/choosenim
2 changes: 1 addition & 1 deletion scripts/choosenim-unix-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ install() {
local ext=""

case $platform in
*macosx_amd64* | *macosx_arm* | *linux_amd64* )
*macosx_amd64* | *macosx_arm* | *linux_amd64* | *linux_arm64* )
;;
*windows_amd64* )
# Download ZIP for Windows
Expand Down

0 comments on commit c12dc5f

Please sign in to comment.