Repository navigation
74 lines (65 loc) · 2.07 KB
/
Copy pathbuild-matrix.yml
File metadata and controls
74 lines (65 loc) · 2.07 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: 🔢 Build Matrix
on:
workflow_call:
workflow_dispatch:
jobs:
build-matrix:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- identifier: windows-debug
os: windows-latest
name: 🏁 Windows Debug
preset: windows-x64-md
configuration: Debug
target: template_debug
- identifier: windows-release
os: windows-latest
name: 🏁 Windows Release
preset: windows-x64-md
configuration: Release
target: template_release
- identifier: macos-debug
os: macos-latest
name: 🍎 macOS (universal) Debug
preset: macos-universal
configuration: Debug
target: template_debug
- identifier: macos-release
os: macos-latest
name: 🍎 macOS (universal) Release
preset: macos-universal
configuration: Release
target: template_release
- identifier: linux-debug
os: ubuntu-24.04
name: 🐧 Linux Debug
preset: linux-x64
configuration: Debug
target: template_debug
- identifier: linux-release
os: ubuntu-24.04
name: 🐧 Linux Release
preset: linux-x64
configuration: Release
target: template_release
steps:
- name: Checkout project
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive
persist-credentials: false
- name: Build
uses: ./.github/actions/openvic-sim-build
with:
identifier: ${{ matrix.identifier }}
preset: ${{ matrix.preset }}
configuration: ${{ matrix.configuration }}
target: ${{ matrix.target }}
# Benchmarks are built (not run) for compile coverage.
cmake-args: -DOPENVIC_SIM_BUILD_BENCHMARKS=ON