Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for arm64 on linux #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading