-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (48 loc) · 1.47 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
name: C Test CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04, windows-latest]
include:
- {sys: clang64, env: clang-x86_64}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install mold on ubuntu systems
if: matrix.os == 'ubuntu-24.04'
uses: rui314/setup-mold@bac87d5a5820d626ba77131fbbfbce77faf03b6e # v1
- name: Install msys-clang on windows systems.
if: matrix.os == 'windows-latest'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
install: |
libbsd
git
mingw-w64-${{matrix.env}}-just
mingw-w64-${{matrix.env}}-clang
- name: Install just on ubuntu
if: matrix.os == 'ubuntu-24.04'
uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2
- name: Test build on windows
if: matrix.os == 'windows-latest'
shell: msys2 {0}
run: just build
- name: Test build on ubuntu
if: matrix.os == 'ubuntu-24.04'
shell: bash
run: just build
- name: Run unit-tests on windows
if: matrix.os == 'windows-latest'
shell: msys2 {0}
run: just test
- name: Run unit-tests on ubuntu
if: matrix.os == 'ubuntu-24.04'
shell: bash
run: just test