Skip to content

Commit 328366a

Browse files
committed
Switch to modern build infrastructure
Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
1 parent 9a554ec commit 328366a

2 files changed

Lines changed: 55 additions & 108 deletions

File tree

.github/workflows/build.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI Builds
2+
3+
on:
4+
# execute on every PR made targeting the branches bellow
5+
pull_request:
6+
branches:
7+
- main
8+
9+
# execute on every push
10+
push:
11+
12+
# execute on trigger
13+
repository_dispatch:
14+
types: [examples-build]
15+
16+
jobs:
17+
build-osmp-examples:
18+
name: Build OSMP Examples
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
os: [windows-latest, ubuntu-latest, macos-latest]
23+
runs-on: ${{ matrix.os }}
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
submodules: recursive
29+
30+
- name: Get CMake
31+
uses: lukka/get-cmake@latest
32+
33+
- name: Cache vcpkg
34+
uses: actions/cache@v4
35+
with:
36+
path: ${{ github.workspace }}/vcpkg_cache
37+
key: vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json', 'CMakePresets.json') }}
38+
39+
- name: Setup vcpkg
40+
uses: lukka/run-vcpkg@v11
41+
42+
- name: Build examples
43+
uses: lukka/run-cmake@v10
44+
env:
45+
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
46+
with:
47+
configurePreset: vcpkg
48+
buildPreset: vcpkg
49+
buildPresetAdditionalArgs: "['--config Release']"
50+
51+
- name: Upload build artifacts
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: Examples-${{ runner.os }}
55+
path: examples/build

.github/workflows/protobuf.yml

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)