Skip to content

Commit

Permalink
feat: Add the linux arm64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Dec 14, 2023
1 parent bef6e73 commit 04a6011
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ jobs:
uses: prantlf/shelve-output-action@v2
with:
enable: ${{ steps.bump.outputs.bumped }}
- name: Install ARM Cross-Compiler
run: |
sudo apt-get update
sudo apt-get install gcc gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
- name: Build ARM
run: make build RELEASE=1 LINUX_ARM=1
- name: Shelve output
uses: prantlf/shelve-output-action@v2
with:
enable: ${{ steps.bump.outputs.bumped }}
arch: arm64

macos:
needs:
Expand All @@ -58,7 +69,7 @@ jobs:
if: ${{ needs.linux.outputs.changed == 'true' }}
uses: prantlf/shelve-output-action@v2
- name: Build ARM
run: make build RELEASE=1 ARM=1
run: make build RELEASE=1 MACOS_ARM=1
- name: Shelve output
if: ${{ needs.linux.outputs.changed == 'true' }}
uses: prantlf/shelve-output-action@v2
Expand Down Expand Up @@ -126,7 +137,7 @@ jobs:
with:
files: ${{ needs.linux.outputs.changed-files }}
- name: Unshelve output
uses: prantlf/unshelve-output-action@v4
uses: prantlf/unshelve-output-action@v5
- name: Publish release
uses: prantlf/finish-release-action@v1
env:
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
ifeq (1,${RELEASE})
VFLAGS=-prod
endif
ifeq (1,${ARM})
ifeq (1,${MACOS_ARM})
VFLAGS:=-cflags "-target arm64-apple-darwin" $(VFLAGS)
endif
ifeq (1,${LINUX_ARM})
VFLAGS:=-cc aarch64-linux-gnu-gcc $(VFLAGS)
endif
ifeq (1,${WINDOWS})
VFLAGS:=-os windows $(VFLAGS)
endif
Expand Down

0 comments on commit 04a6011

Please sign in to comment.