Skip to content

github: add basic CI tests #1

github: add basic CI tests

github: add basic CI tests #1

Workflow file for this run

name: Build and test libucontext

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 8, Col: 12): Unexpected value 'ubuntu-latest', (Line: 10, Col: 5): Unexpected value 'fail-fast', (Line: 11, Col: 5): Unexpected value 'matrix', (Line: 10, Col: 5): There's not enough info to determine what you meant. Add one of these properties: cancel-timeout-minutes, container, continue-on-error, defaults, env, environment, outputs, runs-on, secrets, services, snapshot, steps, timeout-minutes, uses, with, (Line: 40, Col: 5): A sequence was not expected
on:
push:
pull_request:
jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- arch: x86
platform: linux/386
image: alpine:latest
- arch: x86_64
platform: linux/amd64
image: alpine:latest
- arch: ppc64le
platform: linux/ppc64le
image: alpine:latest
- arch: armv7
platform: linux/arm/v7
image: alpine:latest
- arch: aarch64
platform: linux/arm64
image: alpine:latest
- arch: riscv64
platform: linux/riscv64
image: alpine:latest
- arch: s390x
platform: linux/s390x
image: alpine:latest
# Blocked by https://github.com/tonistiigi/binfmt/issues/133
# - arch: loongarch64
# platform: linux/loong64
# image: registry.alpinelinux.org/alpine:latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up QEMU user emulation
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build and run tests using Docker
run: |
docker run --rm \
--platform=${{matrix.platform}} \
-v "$PWD:/work" \
-w /work \
${{matrix.image}} \
sh -lc '
apk add build-base
make check ARCH=${{matrix.arch}}
'