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 linux-arm64 build #78

Merged
merged 17 commits into from
Jul 17, 2023
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [ "main" ]
tags: [ "*" ]
pull_request:
branches: [ "main" ]

permissions:
contents: write
Expand All @@ -16,6 +18,9 @@ jobs:
- os: ubuntu-latest
rid: linux-x64
zipSuffix: tar.gz
- os: ubuntu-latest
rid: linux-arm64
zipSuffix: tar.gz
- os: windows-latest
rid: win-x64
zipSuffix: zip
Expand All @@ -27,6 +32,18 @@ jobs:
zipSuffix: tar.gz
runs-on: ${{ matrix.os }}
steps:
- name: Install linux arm64 prereqs
if: matrix.rid == 'linux-arm64'
run: |
sudo dpkg --add-architecture arm64
sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
EOF'
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
sudo apt update
sudo apt install -y clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down