33 lines
907 B
YAML
33 lines
907 B
YAML
name: 'CI'
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
# Jobs
|
|
jobs:
|
|
# Test Project
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
arch:
|
|
- AMD64
|
|
- ARM64
|
|
name: Test
|
|
runs-on: ${{ startsWith(matrix.arch, 'ARM') && 'raspberry-pi' || 'ubuntu-latest' }}
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
# Dependencies
|
|
- name: Install Dependencies
|
|
run: ./scripts/install-dependencies-${{ matrix.arch }}.sh
|
|
# Build
|
|
- name: Build
|
|
run: ./example/build.sh
|
|
# Test
|
|
- name: Test (Using Pipes)
|
|
run: MCPI_USE_PIPE_TRAMPOLINE=1 ./example/run.sh
|
|
- name: Test (Using System Call)
|
|
run: ./example/run.sh
|
|
if: ${{ ! startsWith(matrix.arch, 'ARM') }} |