xbps/.github/workflows/ci.yaml
classabbyamp 0990b2ec81 CI: minor improvements to build/test workflow
- add a concurrency group so things aren't run on push *and*
  pull_request update
- add a name to steps missing one
2022-12-09 20:32:54 +01:00

48 lines
1.3 KiB
YAML

name: Tests
on:
pull_request:
push:
branches:
- 'master'
- 'ci-**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
testsuite:
strategy:
fail-fast: false
matrix:
c_library: [glibc, musl]
c_compiler: [gcc, clang]
include:
- c_library: glibc
void_image: ghcr.io/void-linux/void-linux:20220530rc01-full-x86_64
- c_library: musl
void_image: ghcr.io/void-linux/void-linux:20220530rc01-full-x86_64-musl
- c_library: musl
void_image: ghcr.io/void-linux/void-linux:20220530rc01-full-x86_64-musl
c_compiler: pcc
extra_deps: gcc
runs-on: ubuntu-latest
container: ${{ matrix.void_image }}
steps:
- uses: actions/checkout@v1
- name: Prepare container
run: |
xbps-install -Syu || xbps-install -yu xbps
xbps-install -Sy ${{ matrix.c_compiler }} ${{ matrix.extra_deps }} make pkg-config zlib-devel openssl-devel libarchive-devel kyua atf-devel
- name: Build
env:
CC: ${{ matrix.c_compiler }}
run: |
./configure --enable-tests
make -j
- name: Check
run: make check