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

Commit d34b139

Browse files
authored
Move version out of CI var (#135)
1 parent f254a24 commit d34b139

9 files changed

Lines changed: 62 additions & 13 deletions

File tree

.github/workflows/android-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
required: true
88
type: boolean
99
default: false
10+
11+
godot_version:
12+
description: "Version of godot to be used"
13+
required: true
14+
type: string
1015

1116
env:
1217
BASE_BRANCH: main
1318
SCONSFLAGS: "production=yes extra_suffix=luaAPI"
1419
SCONS_CACHE_LIMIT: 7168
15-
GODOT_VERSION: ${{ vars.GODOT_VERSION }}-stable
20+
GODOT_VERSION: ${{ inputs.godot_version }}-stable
1621

1722
jobs:
1823
android-builds:

.github/workflows/gdextension-unit-tests.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: ⚙️ GDExtension Unit Tests
22
on:
33
workflow_call:
4+
inputs:
5+
godot_version:
6+
description: "Version of godot to be used"
7+
required: true
8+
type: string
49

510
env:
611
BASE_BRANCH: main
@@ -12,8 +17,8 @@ jobs:
1217
name: GDExtension Unit Tests
1318
steps:
1419
- uses: actions/checkout@v3
15-
- name: Download godot ${{ vars.GODOT_VERSION }}
16-
run: wget -O godot.zip https://downloads.tuxfamily.org/godotengine/${{ vars.GODOT_VERSION }}/Godot_v${{ vars.GODOT_VERSION }}-stable_linux.x86_64.zip
20+
- name: Download godot ${{ inputs.godot_version }}
21+
run: wget -O godot.zip https://downloads.tuxfamily.org/godotengine/${{ inputs.godot_version }}/Godot_v${{ inputs.godot_version }}-stable_linux.x86_64.zip
1722
- name: Extract godot
1823
run: |
1924
7z x godot.zip
@@ -42,8 +47,8 @@ jobs:
4247
name: LuaJIT GDExtension Unit Tests
4348
steps:
4449
- uses: actions/checkout@v3
45-
- name: Download godot ${{ vars.GODOT_VERSION }}
46-
run: wget -O godot.zip https://downloads.tuxfamily.org/godotengine/${{ vars.GODOT_VERSION }}/Godot_v${{ vars.GODOT_VERSION }}-stable_linux.x86_64.zip
50+
- name: Download godot ${{ inputs.godot_version }}
51+
run: wget -O godot.zip https://downloads.tuxfamily.org/godotengine/${{ inputs.godot_version }}/Godot_v${{ inputs.godot_version }}-stable_linux.x86_64.zip
4752
- name: Extract godot
4853
run: |
4954
7z x godot.zip

.github/workflows/gdextension.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ on:
77
required: true
88
type: boolean
99
default: false
10+
11+
godot_version:
12+
description: "Version of godot to be used"
13+
required: true
14+
type: string
15+
1016
env:
1117
BASE_BRANCH: main
12-
GODOT_VERSION: ${{ vars.GODOT_VERSION }}-stable
18+
GODOT_VERSION: ${{ inputs.godot_version }}-stable
1319

1420
jobs:
1521
gdextension:

.github/workflows/ios-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
required: true
88
type: boolean
99
default: false
10+
11+
godot_version:
12+
description: "Version of godot to be used"
13+
required: true
14+
type: string
1015

1116
env:
1217
BASE_BRANCH: main
1318
SCONSFLAGS: "production=yes extra_suffix=luaAPI"
1419
SCONS_CACHE_LIMIT: 7168
15-
GODOT_VERSION: ${{ vars.GODOT_VERSION }}-stable
20+
GODOT_VERSION: ${{ inputs.godot_version }}-stable
1621

1722
jobs:
1823
ios-builds:

.github/workflows/linux.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
required: true
88
type: boolean
99
default: false
10+
11+
godot_version:
12+
description: "Version of godot to be used"
13+
required: true
14+
type: string
1015

1116
env:
1217
BASE_BRANCH: main
1318
SCONSFLAGS: "production=yes extra_suffix=luaAPI"
1419
SCONS_CACHE_LIMIT: 7168
15-
GODOT_VERSION: ${{ vars.GODOT_VERSION }}-stable
20+
GODOT_VERSION: ${{ inputs.godot_version }}-stable
1621

1722
jobs:
1823
linux-builds:

.github/workflows/macos-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
required: true
88
type: boolean
99
default: false
10+
11+
godot_version:
12+
description: "Version of godot to be used"
13+
required: true
14+
type: string
1015

1116
env:
1217
BASE_BRANCH: main
1318
SCONSFLAGS: "production=yes extra_suffix=luaAPI"
1419
SCONS_CACHE_LIMIT: 7168
15-
GODOT_VERSION: ${{ vars.GODOT_VERSION }}-stable
20+
GODOT_VERSION: ${{ inputs.godot_version }}-stable
1621

1722
jobs:
1823
macos-builds:

.github/workflows/runner.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
- "project/demo/*"
2525

2626
env:
27-
GODOT_VERSION: ${{ vars.GODOT_VERSION }}
27+
GODOT_VERSION: 4.0.3
2828

2929
jobs:
3030
static-checks:
@@ -37,13 +37,15 @@ jobs:
3737
uses: ./.github/workflows/linux.yml
3838
with:
3939
fullbuild: ${{ github.event_name == 'workflow_dispatch' }}
40+
godot_version: 4.0.3
4041

4142
macos-build:
4243
name: 🍎 macOS
4344
needs: static-checks
4445
uses: ./.github/workflows/macos-build.yml
4546
with:
4647
fullbuild: ${{ github.event_name == 'workflow_dispatch' }}
48+
godot_version: 4.0.3
4749

4850
macos-package:
4951
name: 🍎 macOS Package
@@ -58,6 +60,7 @@ jobs:
5860
uses: ./.github/workflows/android-build.yml
5961
with:
6062
fullbuild: ${{ github.event_name == 'workflow_dispatch' }}
63+
godot_version: 4.0.3
6164

6265
android-package:
6366
name: 🤖 Android Package
@@ -71,6 +74,7 @@ jobs:
7174
uses: ./.github/workflows/ios-build.yml
7275
with:
7376
fullbuild: ${{ github.event_name == 'workflow_dispatch' }}
77+
godot_version: 4.0.3
7478

7579
ios-package:
7680
name: 🍎 IOS Package
@@ -84,20 +88,23 @@ jobs:
8488
uses: ./.github/workflows/web.yml
8589
with:
8690
fullbuild: ${{ github.event_name == 'workflow_dispatch' }}
91+
godot_version: 4.0.3
8792

8893
windows-build:
8994
name: 🎨 Windows
9095
needs: static-checks
9196
uses: ./.github/workflows/windows.yml
9297
with:
9398
fullbuild: ${{ github.event_name == 'workflow_dispatch' }}
99+
godot_version: 4.0.3
94100

95101
gdextension-build:
96102
name: ⚙️ GDExtension
97103
needs: static-checks
98104
uses: ./.github/workflows/gdextension.yml
99105
with:
100106
fullbuild: ${{ github.event_name == 'workflow_dispatch' }}
107+
godot_version: 4.0.3
101108

102109
module-unit-tests:
103110
name: ⚙️ Module Unit Tests
@@ -108,6 +115,8 @@ jobs:
108115
name: ⚙️ GDExtension Unit Tests
109116
needs: gdextension-build
110117
uses: ./.github/workflows/gdextension-unit-tests.yml
118+
with:
119+
godot_version: 4.0.3
111120

112121
template-version-file:
113122
name: 📝 Create template version file

.github/workflows/web.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
required: true
88
type: boolean
99
default: false
10+
11+
godot_version:
12+
description: "Version of godot to be used"
13+
required: true
14+
type: string
1015

1116
env:
1217
BASE_BRANCH: main
1318
SCONSFLAGS: "production=yes extra_suffix=luaAPI optimize=size"
1419
SCONS_CACHE_LIMIT: 7168
15-
GODOT_VERSION: ${{ vars.GODOT_VERSION }}-stable
20+
GODOT_VERSION: ${{ inputs.godot_version }}-stable
1621
EM_VERSION: 3.1.18
1722
EM_CACHE_FOLDER: "emsdk-cache"
1823

.github/workflows/windows.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ on:
66
description: "Weather or not to build all targets"
77
required: true
88
type: boolean
9+
10+
godot_version:
11+
description: "Version of godot to be used"
12+
required: true
13+
type: string
914

1015
env:
1116
BASE_BRANCH: main
1217
SCONSFLAGS: "production=yes extra_suffix=luaAPI"
13-
SCONS_CACHE_MSVC_CONFIG: true
1418
SCONS_CACHE_LIMIT: 7168
15-
GODOT_VERSION: ${{ vars.GODOT_VERSION }}-stable
19+
GODOT_VERSION: ${{ inputs.godot_version }}-stable
1620

1721
jobs:
1822
windows-builds:

0 commit comments

Comments
 (0)