-
-
Notifications
You must be signed in to change notification settings - Fork 32
47 lines (47 loc) · 1.59 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
name: CI
on: [ push, pull_request ]
jobs:
CI:
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
container: mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim
script: ./build.sh
- os: ubuntu-22.04
container: rockylinux:8
script: ./build.sh
# TODO(kleisauke): Remove when dotnet-sdk-8.0 is available in the AppStream repository
allow_failures: true
- os: ubuntu-22.04
container: mcr.microsoft.com/dotnet/sdk:8.0-alpine3.18
script: ./build.sh
- os: macos-12
script: ./build.sh
- os: windows-2022
script: .\build.ps1
steps:
- name: Dependencies (Debian 12)
if: contains(matrix.container, 'bookworm')
run: |
apt-get update
apt-get install -y fontconfig-config
- name: Dependencies (Rocky Linux 8)
if: contains(matrix.container, 'rockylinux')
run: dnf install -y dotnet-sdk-8.0 google-noto-sans-fonts which || true
- name: Dependencies (Alpine 3.18)
if: contains(matrix.container, 'alpine')
run: apk add bash font-noto --update-cache
- name: Setup dotnet (macOS 12, Windows 2022)
if: runner.os != 'Linux'
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Checkout
uses: actions/checkout@v4
- name: Test
continue-on-error: ${{ matrix.allow_failures == true }}
run: ${{ matrix.script }}