Skip to content

Commit 9b42534

Browse files
committed
Add pipeline for no-SDL2 linux builds
1 parent 91e2378 commit 9b42534

5 files changed

Lines changed: 125 additions & 1 deletion

File tree

.github/workflows/build-all-and-release.yml

Lines changed: 105 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@ jobs:
1717
with:
1818
name: pc-nzp-linux32
1919
path: ./engine/release/nzportable32-sdl
20+
Compile-Linux32-noSDL2:
21+
runs-on: ubuntu-latest
22+
container:
23+
image: motolegacy/fteqw:latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v2
27+
- name: Build Linux i386 (no sdl)
28+
run: |
29+
cd tools/
30+
sh build-nzp-linux32-nosdl.sh
31+
- name: Upload Artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: pc-nzp-linux32-nosdl
35+
path: ./engine/release/nzportable32
2036
Compile-Linux64:
2137
runs-on: ubuntu-latest
2238
container:
@@ -33,6 +49,22 @@ jobs:
3349
with:
3450
name: pc-nzp-linux64
3551
path: ./engine/release/nzportable64-sdl
52+
Compile-Linux64-noSDL2:
53+
runs-on: ubuntu-latest
54+
container:
55+
image: motolegacy/fteqw:latest
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v2
59+
- name: Build Linux x86_64 (no sdl)
60+
run: |
61+
cd tools/
62+
sh build-nzp-linux64-nosdl.sh
63+
- name: Upload Artifact
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: pc-nzp-linux64-nosdl
67+
path: ./engine/release/nzportable64
3668
Compile-LinuxArm64:
3769
runs-on: ubuntu-latest
3870
container:
@@ -49,6 +81,22 @@ jobs:
4981
with:
5082
name: pc-nzp-linux_arm64
5183
path: ./engine/release/nzportablearm64-sdl
84+
Compile-LinuxArm64-noSDL2:
85+
runs-on: ubuntu-latest
86+
container:
87+
image: motolegacy/fteqw:latest
88+
steps:
89+
- name: Checkout
90+
uses: actions/checkout@v2
91+
- name: Build Linux Arm64 (no sdl)
92+
run: |
93+
cd tools/
94+
sh build-nzp-linux_arm64-nosdl.sh
95+
- name: Upload Artifact
96+
uses: actions/upload-artifact@v4
97+
with:
98+
name: pc-nzp-linux_arm64-nosdl
99+
path: ./engine/release/nzportablearm64
52100
Compile-LinuxArmhf:
53101
runs-on: ubuntu-latest
54102
container:
@@ -65,6 +113,22 @@ jobs:
65113
with:
66114
name: pc-nzp-linux_armhf
67115
path: ./engine/release/nzportablearmhf-sdl
116+
Compile-LinuxArmhf-noSDL2:
117+
runs-on: ubuntu-latest
118+
container:
119+
image: motolegacy/fteqw:latest
120+
steps:
121+
- name: Checkout
122+
uses: actions/checkout@v2
123+
- name: Build Linux Armhf (no sdl)
124+
run: |
125+
cd tools/
126+
sh build-nzp-linux_armhf-nosdl.sh
127+
- name: Upload Artifact
128+
uses: actions/upload-artifact@v4
129+
with:
130+
name: pc-nzp-linux_armhf-nosdl
131+
path: ./engine/release/nzportablearmhf
68132
Compile-Windows32:
69133
runs-on: ubuntu-latest
70134
container:
@@ -149,7 +213,7 @@ jobs:
149213
./engine/release/ftewebgl.js
150214
Unify-and-Release:
151215
runs-on: ubuntu-latest
152-
needs: [Compile-Linux32, Compile-Linux64, Compile-LinuxArm64, Compile-LinuxArmhf, Compile-Windows32, Compile-Windows32-noSDL2, Compile-Windows64, Compile-Windows64-noSDL2, Compile-WASM]
216+
needs: [Compile-Linux32, Compile-Linux32-noSDL2, Compile-Linux64, Compile-Linux64-noSDL2, Compile-LinuxArm64, Compile-LinuxArm64-noSDL2, Compile-LinuxArmhf, Compile-LinuxArmhf-noSDL2, Compile-Windows32, Compile-Windows32-noSDL2, Compile-Windows64, Compile-Windows64-noSDL2, Compile-WASM]
153217
steps:
154218
- name: Checkout
155219
uses: actions/checkout@v2
@@ -168,6 +232,10 @@ jobs:
168232
zip -r -j pc-nzp-linux_armhf.zip pc-nzp-linux_armhf/*
169233
zip -r -j pc-nzp-win32.zip pc-nzp-win32/*
170234
zip -r -j pc-nzp-win64.zip pc-nzp-win64/*
235+
zip -r -j pc-nzp-linux32-nosdl.zip pc-nzp-linux32-nosdl/*
236+
zip -r -j pc-nzp-linux64-nosdl.zip pc-nzp-linux64-nosdl/*
237+
zip -r -j pc-nzp-linux_arm64-nosdl.zip pc-nzp-linux_arm64-nosdl/*
238+
zip -r -j pc-nzp-linux_armhf-nosdl.zip pc-nzp-linux_armhf-nosdl/*
171239
zip -r -j pc-nzp-win32-nosdl.zip pc-nzp-win32-nosdl/*
172240
zip -r -j pc-nzp-win64-nosdl.zip pc-nzp-win64-nosdl/*
173241
zip -r -j pc-nzp-web.zip pc-nzp-web/*
@@ -206,6 +274,15 @@ jobs:
206274
asset_path: ./pc-nzp-linux32.zip
207275
asset_name: pc-nzp-linux32.zip
208276
asset_content_type: application/zip
277+
- name: Upload Linux32 Archive (no SDL)
278+
uses: actions/upload-release-asset@v1
279+
env:
280+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
281+
with:
282+
upload_url: ${{ steps.create_release.outputs.upload_url }}
283+
asset_path: ./pc-nzp-linux32-nosdl.zip
284+
asset_name: pc-nzp-linux32-nosdl.zip
285+
asset_content_type: application/zip
209286
- name: Upload Linux64 Archive
210287
uses: actions/upload-release-asset@v1
211288
env:
@@ -215,6 +292,15 @@ jobs:
215292
asset_path: ./pc-nzp-linux64.zip
216293
asset_name: pc-nzp-linux64.zip
217294
asset_content_type: application/zip
295+
- name: Upload Linux64 Archive (no SDL)
296+
uses: actions/upload-release-asset@v1
297+
env:
298+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
299+
with:
300+
upload_url: ${{ steps.create_release.outputs.upload_url }}
301+
asset_path: ./pc-nzp-linux64-nosdl.zip
302+
asset_name: pc-nzp-linux64-nosdl.zip
303+
asset_content_type: application/zip
218304
- name: Upload LinuxArm64 Archive
219305
uses: actions/upload-release-asset@v1
220306
env:
@@ -224,6 +310,15 @@ jobs:
224310
asset_path: ./pc-nzp-linux_arm64.zip
225311
asset_name: pc-nzp-linux_arm64.zip
226312
asset_content_type: application/zip
313+
- name: Upload LinuxArm64 Archive (no SDL)
314+
uses: actions/upload-release-asset@v1
315+
env:
316+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
317+
with:
318+
upload_url: ${{ steps.create_release.outputs.upload_url }}
319+
asset_path: ./pc-nzp-linux_arm64-nosdl.zip
320+
asset_name: pc-nzp-linux_arm64-nosdl.zip
321+
asset_content_type: application/zip
227322
- name: Upload LinuxArmhf Archive
228323
uses: actions/upload-release-asset@v1
229324
env:
@@ -233,6 +328,15 @@ jobs:
233328
asset_path: ./pc-nzp-linux_armhf.zip
234329
asset_name: pc-nzp-linux_armhf.zip
235330
asset_content_type: application/zip
331+
- name: Upload LinuxArmhf Archive (no SDL)
332+
uses: actions/upload-release-asset@v1
333+
env:
334+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
335+
with:
336+
upload_url: ${{ steps.create_release.outputs.upload_url }}
337+
asset_path: ./pc-nzp-linux_armhf-nosdl.zip
338+
asset_name: pc-nzp-linux_armhf-nosdl.zip
339+
asset_content_type: application/zip
236340
- name: Upload Windows32 Archive
237341
uses: actions/upload-release-asset@v1
238342
env:

tools/build-nzp-linux32-nosdl.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cd ../engine
2+
export CC=i686-linux-gnu-gcc
3+
export STRIP=i686-linux-gnu-strip
4+
make makelibs && make m-rel FTE_CONFIG=nzportable -j32
5+
mv release/nzportable release/nzportable32

tools/build-nzp-linux64-nosdl.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cd ../engine
2+
export CC=x86_64-linux-gnu-gcc
3+
export STRIP=x86_64-linux-gnu-strip
4+
make makelibs && make m-rel FTE_CONFIG=nzportable -j32
5+
mv release/nzportable release/nzportable64
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cd ../engine
2+
export CC=aarch64-linux-gnu-gcc
3+
export STRIP=aarch64-linux-gnu-strip
4+
make makelibs && make m-rel FTE_CONFIG=nzportable -j32
5+
mv release/nzportable release/nzportablearm64
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cd ../engine
2+
export CC=arm-linux-gnueabihf-gcc
3+
export STRIP=arm-linux-gnueabihf-strip
4+
make makelibs && make m-rel FTE_CONFIG=nzportable -j32
5+
mv release/nzportable release/nzportablearmhf

0 commit comments

Comments
 (0)