blob: f5d79bd15b2571ba19db8a6258704337efc124e5 (
plain)
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
|
name: CMake CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: fedora:rawhide
steps:
- uses: actions/checkout@v6
- name: install build dependency
run: sudo dnf install -y gcc-c++ kyotocabinet-devel glib2-devel cmake ninja wget
- name: configure
run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
- name: build
run: cmake --build build
- name: install
env:
DESTDIR: ${{ github.workspace }}/dist
run: cmake --install build
- name: run tests
working-directory: ${{ github.workspace }}/build
run: ctest --output-on-failure
- name: list artifact
working-directory: ${{ github.workspace }}/dist/usr/local
run: find .
|