File tree 4 files changed +42
-33
lines changed
4 files changed +42
-33
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ unit_tests:
14
14
integration_tests :
15
15
- ' tests/integration/config/plugins/integration-tests/**'
16
16
17
+ steam :
18
+ - ' steam/**'
19
+
17
20
doxygen_config :
18
21
- ' Doxyfile'
19
22
Original file line number Diff line number Diff line change @@ -2,16 +2,17 @@ name: CI
2
2
3
3
on :
4
4
push :
5
- # Run for pushes to master or a release branch , e.g. a PR was merged ...
5
+ # Run for pushes to master, e.g. a PR was merged ...
6
6
branches :
7
7
- master
8
- - releases/v[0-9]+.[0-9]+.[0-9]+
9
8
# ... and only when we've possibly changed how the game will function.
10
9
paths :
11
10
- ' source/**'
12
11
- ' data/**'
13
12
- ' tests/**'
14
13
- ' .github/workflows/**'
14
+ - ' .github/path-filters.yml'
15
+ - ' steam/**'
15
16
- ' CMakeLists.txt'
16
17
- ' CMakePresets.json'
17
18
- Doxyfile
24
25
- ' data/**'
25
26
- ' tests/**'
26
27
- ' .github/workflows/**'
28
+ - ' .github/path-filters.yml'
29
+ - ' steam/**'
27
30
- ' CMakeLists.txt'
28
31
- ' CMakePresets.json'
29
32
- Doxyfile
84
87
run : ctest --preset ${{ matrix.opengl == 'GL' && 'linux-ci-benchmark' || 'linux-gles-ci-benchmark' }}
85
88
86
89
90
+ build_steam :
91
+ name : Steam
92
+ needs : changed
93
+ if : ${{ needs.changed.outputs.game_code == 'true' || needs.changed.outputs.unit_tests == 'true' || needs.changed.outputs.integration_tests == 'true' || needs.changed.outputs.cmake_files == 'true' || needs.changed.outputs.ci_config == 'true' || needs.changed.outputs.steam == 'true' }}
94
+ runs-on : ubuntu-latest
95
+ env :
96
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
97
+ steps :
98
+ - uses : actions/checkout@v4
99
+ with :
100
+ show-progress : false
101
+ - name : Setup cached directories
102
+ uses : actions/cache@v4
103
+ with :
104
+ path : /home/runner/.cache/sccache
105
+ key : ${{ runner.os }}-steam-ci-sccache-${{ github.ref }}
106
+ restore-keys : |
107
+ ${{ runner.os }}-steam-ci-sccache-refs/heads/master
108
+ - name : Setup sccache
109
+ uses : Mozilla-Actions/sccache-action@v0.0.5
110
+ - name : Build Endless Sky
111
+ run : |
112
+ cd steam
113
+ docker compose run steam-x64
114
+ - name : Test Endless Sky
115
+ run : |
116
+ cd steam
117
+ docker compose run test-steam-x64
118
+
119
+
87
120
build_windows :
88
121
name : Windows
89
122
needs : changed
Original file line number Diff line number Diff line change 11
11
value : ${{ jobs.changed.outputs.unit_tests }}
12
12
integration_tests :
13
13
value : ${{ jobs.changed.outputs.integration_tests }}
14
+ steam :
15
+ value : ${{ jobs.changed.outputs.steam }}
14
16
doxygen_config :
15
17
value : ${{ jobs.changed.outputs.doxygen_config }}
16
18
codespell :
42
44
game_code : ${{ steps.filter.outputs.game_code }}
43
45
unit_tests : ${{ steps.filter.outputs.unit_tests }}
44
46
integration_tests : ${{ steps.filter.outputs.integration_tests }}
47
+ steam : ${{ steps.filter.outputs.steam }}
45
48
codespell : ${{ steps.filter.outputs.codespell }}
46
49
editorconfig_files : ${{ steps.filter.outputs.editorconfig_files }}
47
50
content_style_check : ${{ steps.filter.outputs.content_style_check }}
Original file line number Diff line number Diff line change @@ -15,21 +15,6 @@ services:
15
15
ninja EndlessSky
16
16
17
17
18
- steam-x86 :
19
- image : registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest
20
- working_dir : /endless-sky
21
- volumes :
22
- - ' ..:/endless-sky'
23
- command :
24
- - ' /bin/bash'
25
- - ' -c'
26
- - |
27
- mkdir -p build/steam-x86
28
- cd build/steam-x86
29
- cmake ../../ -GNinja -DES_STEAM=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-m32 -DVCPKG_TARGET_TRIPLET=linux-x86-release-static
30
- ninja EndlessSky
31
-
32
-
33
18
test-steam-x64 :
34
19
image : registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest
35
20
volumes :
@@ -42,19 +27,4 @@ services:
42
27
cd build/steam-x64
43
28
ninja
44
29
./endless-sky --version
45
- ctest --label-exclude "(benchmark|integration-debug)"
46
-
47
-
48
- test-steam-x86 :
49
- image : registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest
50
- volumes :
51
- - ' ..:/endless-sky'
52
- working_dir : /endless-sky
53
- command :
54
- - ' /bin/bash'
55
- - ' -c'
56
- - |
57
- cd build/steam-x86
58
- ninja
59
- ./endless-sky --version
60
- ctest --label-exclude "(benchmark|integration-debug)"
30
+ ctest --label-exclude "integration-debug"
You can’t perform that action at this time.
0 commit comments