-
-
Notifications
You must be signed in to change notification settings - Fork 21
70 lines (65 loc) · 1.96 KB
/
test.yml
File metadata and controls
70 lines (65 loc) · 1.96 KB
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
name: Build
on: [push, pull_request]
defaults:
run:
shell: bash
env:
DEBUG: 1
jobs:
test_linux:
name: Run tests on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Godot
run: |
curl --location $GODOT_RELEASE_URL --output godot.zip
unzip godot.zip
mv Godot_* godot
touch _sc_
env:
GODOT_RELEASE_URL: https://github.com/godotengine/godot/releases/download/3.5.1-stable/Godot_v3.5.1-stable_linux_headless.64.zip
- name: Build and test
run: make test-linux64
env:
GODOT_BIN: ./godot
# Windows GitHub runner does not support creating an OpenGL context for running Godot =/
# test_windows:
# name: Run tests on Windows
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true
# - name: Install Godot
# run: |
# curl --location $GODOT_RELEASE_URL --output godot.zip
# unzip godot.zip
# mv Godot_*.exe godot.exe
# touch _sc_
# env:
# GODOT_RELEASE_URL: https://github.com/godotengine/godot/releases/download/3.5.1-stable/Godot_v3.5.1-stable_win64.exe.zip
# - name: Build and test
# run: make test-windows64
# env:
# CC: gcc
# GODOT_BIN: ./godot.exe
test_osx:
name: Run tests on OSX
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Godot
run: |
curl --location $GODOT_RELEASE_URL --output godot.zip
unzip godot.zip
env:
GODOT_RELEASE_URL: https://github.com/godotengine/godot/releases/download/3.5.1-stable/Godot_v3.5.1-stable_osx.universal.zip
- name: Build and test
run: make test-osx64
env:
GODOT_BIN: ./Godot.app/Contents/MacOS/Godot