forked from Rinzii/mim
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (54 loc) · 1.63 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
name: ci
on:
push:
tags-ignore: v*.*
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: init
run: sudo apt install -yqq ninja-build g++-11
- name: configure gcc
run: cmake -S . --preset=default -B build -DCMAKE_CXX_COMPILER=g++-11
- name: configure clang
run: cmake -S . --preset=ninja-clang -B clang
- name: build gcc
run: cmake --build build --config=Release
- name: build clang
run: cmake --build clang --config=Release
- name: test
run: cd build && ctest -C Release
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: configure
run: cmake -S . --preset=vs22 -B build
- name: build
run: cmake --build build --config=Release
- name: test
run: cd build && ctest -C Release
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install homebrew formulae
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: init
run: brew install ninja gcc@11
- name: configure gcc
run: cmake -S . --preset=default -B build -DCMAKE_CXX_COMPILER=g++-11
- name: configure clang
run: cmake -S . --preset=ninja-clang -B clang
- name: build gcc
run: cmake --build build --config=Release
- name: build clang
run: cmake --build clang --config=Release
- name: test
run: cd build && ctest -C Release