Skip to content

Commit 341fbfe

Browse files
committed
Add test workflows for Windows and OSX builds
1 parent 47577f7 commit 341fbfe

1 file changed

Lines changed: 49 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,27 @@ env:
88
DEBUG: 1
99

1010
jobs:
11-
test:
12-
name: Run tests
11+
test_linux:
12+
name: Run tests on Linux
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
submodules: true
18+
- name: Install Godot
19+
run: |
20+
curl --location $GODOT_RELEASE_URL --output godot.zip
21+
unzip godot.zip
22+
mv Godot_* godot
23+
env:
24+
GODOT_RELEASE_URL: https://github.com/godotengine/godot/releases/download/3.5.1-stable/Godot_v3.5.1-stable_linux_headless.64.zip
25+
- name: Build and test
26+
run: make test-linux64
27+
env:
28+
GODOT_BIN: ./godot
29+
30+
test_windows:
31+
name: Run tests on Windows
1332
runs-on: ubuntu-latest
1433
steps:
1534
- uses: actions/checkout@v3
@@ -18,12 +37,34 @@ jobs:
1837
- name: Install dependencies
1938
run: |
2039
sudo apt-get update
21-
sudo apt-get install libc6-dev-i386
40+
sudo apt-get install wine
2241
- name: Install Godot
23-
uses: vitorgus/setup-godot@v1
24-
with:
25-
godot-version: 3.4
26-
download-templates: false
42+
run: |
43+
curl --location $GODOT_RELEASE_URL --output godot.zip
44+
unzip godot.zip
45+
mv Godot_* godot.exe
46+
env:
47+
GODOT_RELEASE_URL: https://github.com/godotengine/godot/releases/download/3.5.1-stable/Godot_v3.5.1-stable_win64.exe.zip
2748
- name: Build and test
28-
run: make test-linux64
49+
run: make test-mingw-windows64
50+
env:
51+
GODOT_BIN: wine godot.exe
2952

53+
test_linux:
54+
name: Run tests on OSX
55+
runs-on: macos-latest
56+
steps:
57+
- uses: actions/checkout@v3
58+
with:
59+
submodules: true
60+
- name: Install Godot
61+
run: |
62+
curl --location $GODOT_RELEASE_URL --output godot.zip
63+
unzip godot.zip
64+
env:
65+
GODOT_RELEASE_URL: https://github.com/godotengine/godot/releases/download/3.5.1-stable/Godot_v3.5.1-stable_osx.universal.zip
66+
- name: Build and test
67+
run: make test-osx64
68+
env:
69+
GODOT_BIN: open ./Godot.app --args
70+

0 commit comments

Comments
 (0)