-
-
Notifications
You must be signed in to change notification settings - Fork 987
54 lines (51 loc) · 1.51 KB
/
cmake-netbsd.yml
File metadata and controls
54 lines (51 loc) · 1.51 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
50
51
52
53
54
name: NetBSD CMake
on:
workflow_dispatch:
push:
branches: main
tags-ignore: '*.*'
paths:
- '.github/workflows/cmake-netbsd.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'include/**'
- 'src/*pp'
- 'src/netbsd/*pp'
pull_request:
branches: main
paths:
- '.github/workflows/cmake-netbsd.yml'
- 'CMakeLists.txt'
- 'cmake/**'
- 'include/**'
- 'src/*pp'
- 'src/netbsd/*pp'
jobs:
build:
name: netbsd-${{ matrix.version }}-${{ matrix.arch }}
runs-on: ubuntu-24.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.arch }}-${{ matrix.version }}
cancel-in-progress: true
strategy:
matrix:
arch: ['aarch64', 'amd64']
version: ['10.1']
steps:
- uses: actions/checkout@v6
- name: Compile
uses: vmactions/netbsd-vm@v1
with:
arch: ${{ matrix.arch }}
release: ${{ matrix.version }}
usesh: true
prepare: |
export PATH="/usr/pkg/sbin:/usr/pkg/bin:$PATH"
export PKG_PATH="https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/${{ matrix.arch }}/${{ matrix.version }}/All/"
/usr/sbin/pkg_add pkgin
pkgin -y install cmake gcc14 git ninja-build
run: |
export CXX="/usr/pkg/gcc14/bin/g++"
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build build --verbose
ctest --test-dir build