forked from Taywee/args
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (44 loc) · 1.39 KB
/
test.yaml
File metadata and controls
57 lines (44 loc) · 1.39 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
name: Test
on:
push:
pull_request:
jobs:
build:
name: ${{ matrix.os }} / ${{ matrix.build_type }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v6
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build
run: cmake --build build --config ${{ matrix.build_type }} --parallel
- name: Test
working-directory: build
run: ctest --output-on-failure -C ${{ matrix.build_type }}
- name: Install
shell: bash
run: |
cmake --install build --config ${{ matrix.build_type }} --prefix "$PWD/staging"
test -f staging/include/args.hxx
meson:
name: meson / ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install meson
run: sudo apt-get update && sudo apt-get install -y meson ninja-build
- name: Configure
run: meson setup build -Dunittests=true -Dexamples=true
- name: Build
run: meson compile -C build
- name: Test
run: meson test -C build --print-errorlogs
- name: Install
run: |
meson install -C build --destdir "$PWD/staging"
test -f staging/usr/local/include/args.hxx