enable ci for aarch64 #191
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["windows", "linux", "macos"] | |
platform: ["x86_64", "aarch64"] | |
config: ["Debug", "Release"] | |
include: | |
- {os: windows, runs-on: windows-latest} | |
- {os: linux, runs-on: ubuntu-latest} | |
- {os: macos, runs-on: macos-latest} | |
exclude: | |
- {os: macos, platform: x86_64} | |
runs-on: ${{ matrix.runs-os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup Linux | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get update && sudo apt-get install -y xorg-dev | |
- name: Setup Linux ARM64 | |
if: matrix.os == 'ubuntu-latest' && matrix.platform == 'aarch64' | |
run: | | |
sudo apt-get update && sudo apt-get install -y crossbuild-essential-arm64 xorg-dev:arm64 | |
echo "CC=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV" | |
echo "CXX=aarch64-linux-gnu-g++" >> "$GITHUB_ENV" | |
- name: Setup MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: ${{ matrix.platform }} | |
- name: Setup CMake/Ninja | |
uses: lukka/get-cmake@latest | |
- name: Configure | |
run: cmake -S . -B build | |
- name: Build | |
run: cmake --build build -j 2 |