diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 1255bcc..39e03ea 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -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 \ No newline at end of file diff --git a/scripts/choosenim-unix-init.sh b/scripts/choosenim-unix-init.sh index 93aa101..5c4d583 100755 --- a/scripts/choosenim-unix-init.sh +++ b/scripts/choosenim-unix-init.sh @@ -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