forked from OpenAssetIO/OpenAssetIO
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (47 loc) · 1.27 KB
/
build-vfx-reference-platform.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Build and upload an artifact of a CY2024 VFX Reference platform
# OpenAssetIO.
name: Build for VFX Reference Platform CY24
on:
workflow_dispatch:
pull_request:
branches-ignore:
- docs
paths-ignore:
- 'docs/**'
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build and test
runs-on: ubuntu-22.04
container:
image: ghcr.io/openassetio/openassetio-build
steps:
- uses: actions/checkout@v3 #Needs to be V3 because of GLIBC ver.
with:
path: openassetio-checkout
# We don't want to publish the test build, it gets too big.
- name: Build and Install (No Tests)
shell: bash
run: >
cd openassetio-checkout
mkdir build
cmake -G Ninja -S . -B build
-DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build
cmake --install build
- name: Upload archive
uses: actions/upload-artifact@v3
with:
name: openassetio-CY2024
path: openassetio-checkout/build/dist
# Reconfigure to build with tests.
- name: Test
run: >
cd openassetio-checkout
cmake --preset test build
ctest -VV --test-dir build --parallel 4