Skip to content

Commit

Permalink
Add linux-arm64 build (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
agocke authored Jul 17, 2023
1 parent 32d822a commit c429bf6
Showing 1 changed file with 17 additions and 0 deletions.
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

0 comments on commit c429bf6

Please sign in to comment.