Skip to content

Testing updated CI pipelines #6

Testing updated CI pipelines

Testing updated CI pipelines #6

Workflow file for this run

name: build and test
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
on:
push:
branches: [ master ]
paths:
- '**'
- '!**.yml'
- '!**.md'
- '**/build.yml'
pull_request:
branches: [ master ]
paths:
- '**'
- '!**.yml'
- '!**.md'
- '**/build.yml'
jobs:
build-linux-cross:
strategy:
fail-fast: false
matrix:
os: [ubuntu22.04]
arch: [riscv64, aarch64, armv7]
runs-on: ${{ matrix.os }}
timeout-minutes: 6
steps:
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
name: Install dependencies
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.os }}
githubToken: ${{ github.token }}
install: |
sudo apt update
sudo apt remove -y firefox
sudo apt upgrade -y
sudo apt install -y \
python3-pip \
python3-setuptools
python3 -m pip install meson ninja
run: |
meson setup build
meson compile -C build
build-macos:
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14]
runs-on: ${{ matrix.os }}
timeout-minutes: 6
env:
LDFLAGS: '-L/opt/homebrew/opt/llvm/lib'
CPPFLAGS: '-I/opt/homebrew/opt/llvm/include'
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
brew update
brew install \
llvm \
meson \
ninja
PATH=/opt/homebrew/opt/llvm/bin:$PATH
echo "PATH=$PATH" >> $GITHUB_ENV
- name: Configure and build
run: |
meson setup build
meson compile -C build