-
Notifications
You must be signed in to change notification settings - Fork 142
62 lines (58 loc) · 1.75 KB
/
ci.yaml
File metadata and controls
62 lines (58 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Tests
on:
pull_request:
push:
branches:
- 'master'
- 'ci-**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
voidlinux:
strategy:
fail-fast: false
matrix:
c_library: [glibc, musl]
c_compiler: [gcc, clang]
include:
- c_library: glibc
void_image: ghcr.io/void-linux/void-glibc-full:20260210r1
- c_library: musl
void_image: ghcr.io/void-linux/void-musl-full:20260210r1
runs-on: ubuntu-latest
container: ${{ matrix.void_image }}
steps:
- uses: actions/checkout@v1
- name: Prepare container
run: |
xbps-install -Syu xbps; xbps-install -Syu
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
fedora:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container: registry.fedoraproject.org/fedora-minimal:43
steps:
- uses: actions/checkout@v1
- name: Prepare container
run: |
dnf -y update
dnf -y install gcc libarchive-devel openssl-devel zlib-devel kyua libatf-c-devel libatf-sh-devel
dnf -y clean all
- name: Build
env:
CC: ${{ matrix.c_compiler }}
run: |
./configure --enable-tests
make -j
- name: Check
run: make check