-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (40 loc) · 1.17 KB
/
build.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
name: build
on:
push:
branches:
- main
jobs:
all:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest] #, ubuntu-latest (libzip too old), windows-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install dependencies (macOS)
if: ${{ runner.os == 'macOS' }}
run: |
brew update
brew reinstall libzip
- name: install dependencies (Linux)
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get -qq update;
sudo apt-get install -y libxml2-dev libsqlite3-0 libzip-dev zipcmp
- name: prepare build directory
run: |
cmake -E make_directory ${{runner.workspace}}/build
- name: configure (Unix)
if: ${{ runner.os != 'Windows' }}
working-directory: ${{runner.workspace}}/build
run: |
cmake ${{github.workspace}}
- name: build
working-directory: ${{runner.workspace}}/build
run: |
cmake --build . --config Release
- name: test
working-directory: ${{runner.workspace}}/build
run: |
ctest --output-on-failure -v -C Release