Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit e3a7c44

Browse files
committed
Create a new workflow to upload master build artefacts
Adds a new `master_build` workflow, identical to the existing CI workflow except: - It only runs on new pushes to `master` - It uploads all build artefacts to make them available for release Minor comment formatting.
1 parent a2b1355 commit e3a7c44

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Continuous Integration
22

33
on:
4-
# Triggers the workflow for pushes to master or development, for pull request events, and for the merge queue
4+
# Triggers the workflow for pushes to development, for pull request events, and for the merge queue
55
push:
66
branches: [development]
77
pull_request:

.github/workflows/master_build.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
name: Master Build
3+
4+
on:
5+
# Triggers the workflow for pushes to master
6+
push:
7+
branches: [master]
8+
9+
workflow_dispatch:
10+
11+
# Cancel in-progress runs if newer changes to the same branch/PR are pushed.
12+
concurrency:
13+
group: ci-${{ github.head_ref || github.ref }}
14+
cancel-in-progress: true
15+
16+
# Build the game on all platforms and store build artefacts of both jobs
17+
jobs:
18+
meson:
19+
uses: ./.github/workflows/meson.yml
20+
with:
21+
upload_artefacts: true
22+
23+
msbuild:
24+
uses: ./.github/workflows/msbuild.yml
25+
with:
26+
upload_artefacts: true
27+

.github/workflows/meson.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Meson Build (Linux, macOS)
2-
# Controls when the action will run.
2+
33
on:
44
# Triggers the workflow when manually dispatched
55
workflow_dispatch:
@@ -9,16 +9,15 @@ on:
99
type: boolean
1010
required: false
1111
default: false
12-
build_type: # "release", "debug"
12+
build_type:
1313
description: "Build Configuration"
1414
type: choice
1515
required: false
1616
default: "release"
1717
options:
1818
- "release"
1919
- "debug"
20-
debug_level: # "full", "minimal", "release"
21-
# TODO: Standardise these, so capitalization is preserved between the windows/linux builds.
20+
debug_level:
2221
description: "Debug Level"
2322
type: choice
2423
required: false
@@ -40,7 +39,6 @@ on:
4039
required: false
4140
default: "release"
4241
debug_level: # "full", "minimal", "release"
43-
# TODO: Standardise these, so capitalization is preserved between the windows/linux builds.
4442
type: string
4543
required: false
4644
default: "release"

0 commit comments

Comments
 (0)