build: add Linux arm64 (#89)

This commit is contained in:
6arelyFuture 2024-06-21 21:43:10 +02:00 committed by GitHub
parent 3f1d78ec10
commit 028bd4a44b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,6 +85,7 @@ jobs:
arch: arch:
- x86 - x86
- x64 - x64
- arm64
steps: steps:
- name: Check out files - name: Check out files
uses: actions/checkout@main uses: actions/checkout@main
@ -94,6 +95,12 @@ jobs:
# NOTE - If LFS ever starts getting used during builds, switch this to true! # NOTE - If LFS ever starts getting used during builds, switch this to true!
lfs: false lfs: false
- name: Install dependencies (arm64)
if: matrix.arch == 'arm64'
run: |
sudo apt-get update
sudo apt-get install crossbuild-essential-arm64 -y
- name: Install dependencies (x86) - name: Install dependencies (x86)
if: matrix.arch == 'x86' if: matrix.arch == 'x86'
run: | run: |
@ -115,6 +122,16 @@ jobs:
- name: Set up problem matching - name: Set up problem matching
uses: ammaraskar/gcc-problem-matcher@master uses: ammaraskar/gcc-problem-matcher@master
- name: Set up CC environment variable
if: matrix.arch == 'arm64'
run: |
echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
- name: Set up CXX environment variable
if: matrix.arch == 'arm64'
run: |
echo "CXX=aarch64-linux-gnu-g++" >> $GITHUB_ENV
- name: Build ${{matrix.arch}} ${{matrix.configuration}} binaries - name: Build ${{matrix.arch}} ${{matrix.configuration}} binaries
run: | run: |
pushd build pushd build