-
Notifications
You must be signed in to change notification settings - Fork 2
93 lines (76 loc) · 2.85 KB
/
verify-dev.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: 'Verify Dev'
on:
pull_request:
branches: [ 'dev' ]
env:
GODOT_VERSION: 4.3
PROJECT_FILE: src/project.godot
VERSION_REGEX: config\/version=\"\K[0-9.\-A-z]*
jobs:
check-version-bump:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
- name: Extract old version string
uses: CapsCollective/version-actions/[email protected]
with:
version-file: ${{ env.PROJECT_FILE }}
version-regex: ${{ env.VERSION_REGEX }}
id: extract-version-old
- name: Checkout current branch
uses: actions/checkout@v4
- name: Extract new version string
uses: CapsCollective/version-actions/[email protected]
with:
version-file: ${{ env.PROJECT_FILE }}
version-regex: ${{ env.VERSION_REGEX }}
id: extract-version-new
- name: Check semantic version bump
uses: CapsCollective/version-actions/[email protected]
with:
new-version: ${{ steps.extract-version-new.outputs.version-string }}
old-version: ${{ steps.extract-version-old.outputs.version-string }}
run-project-validation:
needs: check-version-bump
runs-on: macos-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4
- name: Install Godot
uses: ./.github/actions/install-godot
with:
godot-version: ${{ env.GODOT_VERSION }}
id: install-godot
- name: Open Godot editor for reimport
run: ${{ steps.install-godot.outputs.godot-executable }} --editor --headless --quit || true
# disabled as we dont have any validation scripts, yet
- name: Run project validations
if: false
run: ${{ steps.install-godot.outputs.godot-executable }} --script scripts/run_validations.gd --headless
build:
needs: run-project-validation
runs-on: macos-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4
- name: Checkout LFS
run: git lfs fetch --all && git lfs checkout
# Alternative Godot runner, docs - https://github.com/marketplace/actions/godot-ci
#- name: godot-ci
# uses: abarichello/[email protected]
- name: Install Godot
uses: ./.github/actions/install-godot
with:
godot-version: ${{ env.GODOT_VERSION }}
install-templates: true
id: install-godot
- name: Open Godot editor for reimport
run: ${{ steps.install-godot.outputs.godot-executable }} --editor --headless --quit || true
- name: Build and upload artifacts for all platforms
uses: ./.github/actions/build-godot
with:
godot-executable: ${{ steps.install-godot.outputs.godot-executable }}
project-dir: './src'