forked from lanthora/candy
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 1.36 KB
/
check.yaml
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
58
59
name: check
on:
pull_request:
branches: [master]
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: check format
uses: jidicula/[email protected]
with:
check-path: 'src'
linux:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: build
run: docker build .
macos:
runs-on: macos-13
steps:
- name: depends
run: brew install libconfig spdlog uriparser poco argp-standalone
- name: checkout
uses: actions/checkout@v4
- name: build
run: |
export CPATH=/usr/local/include
export LIBRARY_PATH=/usr/local/lib
cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build
windows:
runs-on: windows-latest
steps:
- name: depends
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
mingw-w64-x86_64-cmake
mingw-w64-x86_64-ninja
mingw-w64-x86_64-gcc
mingw-w64-x86_64-libconfig
mingw-w64-x86_64-spdlog
mingw-w64-x86_64-uriparser
mingw-w64-x86_64-poco
- name: checkout
uses: actions/checkout@v4
- name: build
shell: msys2 {0}
run: cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build