-
Notifications
You must be signed in to change notification settings - Fork 61
46 lines (42 loc) · 1.38 KB
/
main.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
name: CI workflow for main branch
on:
schedule:
- cron: "40 2 * * *"
push:
branches:
- 'master'
tags:
- v*
workflow_dispatch:
jobs:
pre:
# no nightly cmake flag and no concatenation of generated files for release builds
runs-on: "ubuntu-latest"
outputs:
nightly: ${{ steps.set_flags.outputs.nightly }}
concat: ${{ steps.set_flags.outputs.concat }}
steps:
- id: set_flags
shell: bash
run: |
if [[ "${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}" == "true" ]]; then
echo "nightly=OFF" >> $GITHUB_OUTPUT
echo "concat=OFF" >> $GITHUB_OUTPUT
else
echo "nightly=ON" >> $GITHUB_OUTPUT
echo "concat=ON" >> $GITHUB_OUTPUT
fi
continuous-integration:
needs: pre
uses: ./.github/workflows/continuous-integration.yml
secrets: inherit
with:
# create a release build on new git tag
draft-release: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
tigl_nightly: ${{ needs.pre.outputs.nightly }}
tigl_concat_generated_files: ${{ needs.pre.outputs.concat }}
integration-tests: true
documentation-artifact: 'html-documentation'
win-installer-artifact: 'win-installer'
win-package-artifact: 'win-package'
macos-package-artifact: 'macos-package'