-
Notifications
You must be signed in to change notification settings - Fork 36
49 lines (40 loc) · 1.09 KB
/
Copy pathubuntu-build.yaml
File metadata and controls
49 lines (40 loc) · 1.09 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
name: Ubuntu Build & Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Cache apt packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: git cmake liblz4-dev libzstd-dev libgtest-dev
version: 1.0
- name: Cache CMake files
uses: actions/cache@v5
with:
path: |
~/.cache/cmake
build
key: ${{ runner.os }}-cmake-${{ hashFiles('**/CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-cmake-
- name: Configure
run: |
mkdir -p build
cd build
cmake ../cloudini_lib -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON
- name: Build
working-directory: build
run: make -j$(nproc)
- name: Run tests
working-directory: build
run: ctest --output-on-failure