-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (38 loc) · 1.36 KB
/
linux.yml
File metadata and controls
53 lines (38 loc) · 1.36 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
name: Linux
on:
push:
pull_request:
jobs:
build-test-run-linux:
name: Build & Test & Run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update repositories
run: sudo apt-get update -qq
- name: Install meson build system
run: |
sudo apt-get install -y python3
python3 -m pip install meson
- name: Install ninja build system
run: sudo apt-get install -y ninja-build
- name: Configure build directory for shared library
run: meson setup builddir -Dtests=true -Dexamples=true -Ddefault_library=shared
- name: Compile project
run: meson compile -C builddir
- name: Run tests
run: meson test -C builddir
- name: Start example
run: builddir/examples/example --help
- name: Start single header example
run: builddir/examples/example-single-header --help
- name: Configure build directory for static library
run: meson configure builddir -Dtests=true -Dexamples=true -Ddefault_library=static
- name: Compile project
run: meson compile -C builddir
- name: Run tests
run: meson test -C builddir
- name: Start example
run: builddir/examples/example --help
- name: Start single header example
run: builddir/examples/example-single-header --help