Skip to content

GitHub Actions: Also test on an ARM processor #138

GitHub Actions: Also test on an ARM processor

GitHub Actions: Also test on an ARM processor #138

Workflow file for this run

name: run test cases
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
testing:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
compiler: [gcc, clang]
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v4
- name: install bats
run: |
curl -L -o bats-core-1.2.1.tar.gz https://github.com/bats-core/bats-core/archive/v1.2.1.tar.gz
tar zxvf bats-core-1.2.1.tar.gz
cd bats-core-1.2.1 &&
sudo ./install.sh /usr/local
- name: install uncrustify ${{ runner.arch }} == X64
if: runner.arch == "X64"

Check failure on line 30 in .github/workflows/testing.yml

View workflow run for this annotation

GitHub Actions / run test cases

Invalid workflow file

The workflow is not valid. .github/workflows/testing.yml (Line: 30, Col: 11): Unexpected symbol: '"X64"'. Located at position 16 within expression: runner.arch == "X64" .github/workflows/testing.yml (Line: 35, Col: 11): Unexpected symbol: '"ARM64"'. Located at position 16 within expression: runner.arch == "ARM64"
run: |
curl -LO http://launchpadlibrarian.net/516341795/uncrustify_0.72.0+dfsg1-2_amd64.deb
sudo dpkg -i uncrustify_0.72.0+dfsg1-2_amd64.deb || true
- name: install uncrustify ${{ runner.arch }} == ARM64
if: runner.arch == "ARM64"
run: |
curl -LO http://launchpadlibrarian.net/516341795/uncrustify_0.72.0+dfsg1-2_arm64.deb
sudo dpkg -i uncrustify_0.72.0+dfsg1-2_arm64.deb || true
- name: build packcc
run: |
(
mkdir -p build
cd build
cmake -DCMAKE_C_COMPILER=$CC ..
cmake --build . --config Debug --target check --clean-first
cmake --build . --config Release --target check --clean-first
)