-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (59 loc) · 1.64 KB
/
ci.yml
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
name: CI
on: [push, pull_request]
jobs:
bsd:
runs-on: ${{ matrix.os.host }}
strategy:
matrix:
os:
- name: freebsd
architecture: x86-64
version: '14.0'
host: ubuntu-latest
- name: netbsd
architecture: x86-64
version: '10.0'
host: ubuntu-latest
- name: openbsd
architecture: x86-64
version: '7.4'
host: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run CI script on ${{ matrix.os.name }}
uses: cross-platform-actions/[email protected]
with:
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: ${{ matrix.os.version }}
shell: bash
run: |
# doas(1) isn't configured on OpenBSD.
# See https://github.com/cross-platform-actions/action/issues/75
sudo .github/workflows/prepare.sh
.github/workflows/test.sh
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo .github/workflows/prepare.sh
- name: Run tests
run: |
.github/workflows/test.sh
mac:
# The tests segfault on `macos-13`.
# That's x86-64, not Apple silicon.
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
.github/workflows/prepare.sh
- name: Run tests
run: |
.github/workflows/test.sh