This repository was archived by the owner on Mar 24, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (75 loc) · 2.47 KB
/
Copy pathbuild.yml
File metadata and controls
80 lines (75 loc) · 2.47 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
75
76
77
78
79
80
name: Build Project
on:
push:
branches: [ master, ver/* ]
pull_request:
branches: [ master, ver/* ]
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- ubuntu-24.04-arm
- windows-2022
- macos-13
- macos-15
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
if: ${{ matrix.os == 'windows-2022' }}
with:
dotnet-version: '9'
- name: Configure Project
run: cmake . -DPROJECT_VERSION_SUFFIX=${GITHUB_SHA::7}
shell: bash
- name: Build Project (Linux/MacOS)
if: ${{ matrix.os != 'windows-2022' }}
run: |
sudo cmake --build . --config Debug --target install package
sudo rm -rf build/package/_CPack_Packages/
- name: Build Project (Windows)
if: ${{ matrix.os == 'windows-2022' }}
run: |
dotnet tool install --global wix --version 5.0.2
wix extension add --global WixToolset.UI.wixext/5.0.2
cmake --build . --config Debug --target install package
Get-ChildItem -Path build/package/_CPack_Packages -Recurse | Remove-Item -Recurse -Force
- name: Archive Package Artifacts
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: LevelZ-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}
path: build/package/*
overwrite: true
- name: Test Project (Linux/MacOS)
if: ${{ matrix.os != 'windows-2022' }}
run: sudo cmake --build test --target install test
- name: Test Project (Windows)
if: ${{ matrix.os == 'windows-2022' }}
run: ctest -C Debug -T test
- name: Archive Testing Logs
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: LevelZ-Test-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}
path: Testing/Temporary/
overwrite: true
deploy:
runs-on: ubuntu-latest
needs: build
name: Deploy Doxygen
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' }}
steps:
- uses: actions/checkout@v4
- name: Install Doxygen
uses: ssciwr/doxygen-install@v1
- name: Configure Project
run: cmake .
- name: Build Docs
run: make docs
- name: Deploy Doxygen
run: bash doxygen.sh ${GITHUB_SHA::7}