Skip to content

Commit

Permalink
Add pipeline for no-SDL2 win32/win64
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed Nov 30, 2024
1 parent 6b0a448 commit 91e2378
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
54 changes: 53 additions & 1 deletion .github/workflows/build-all-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,22 @@ jobs:
with:
name: pc-nzp-win32
path: ./engine/release/nzportable-sdl.exe
Compile-Windows32-noSDL2:
runs-on: ubuntu-latest
container:
image: motolegacy/fteqw:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Windows x86 (no SDL)
run: |
cd tools/
sh build-nzp-win32-nosdl.sh
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: pc-nzp-win32-nosdl
path: ./engine/release/nzportable.exe
Compile-Windows64:
runs-on: ubuntu-latest
container:
Expand All @@ -97,6 +113,22 @@ jobs:
with:
name: pc-nzp-win64
path: ./engine/release/nzportable-sdl64.exe
Compile-Windows64-noSDL2:
runs-on: ubuntu-latest
container:
image: motolegacy/fteqw:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Windows x86_64 (no SDL)
run: |
cd tools/
sh build-nzp-win64-nosdl.sh
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: pc-nzp-win64-nosdl
path: ./engine/release/nzportable64.exe
Compile-WASM:
runs-on: ubuntu-latest
container:
Expand All @@ -117,7 +149,7 @@ jobs:
./engine/release/ftewebgl.js
Unify-and-Release:
runs-on: ubuntu-latest
needs: [Compile-Linux32, Compile-Linux64, Compile-LinuxArm64, Compile-LinuxArmhf, Compile-Windows32, Compile-Windows64, Compile-WASM]
needs: [Compile-Linux32, Compile-Linux64, Compile-LinuxArm64, Compile-LinuxArmhf, Compile-Windows32, Compile-Windows32-noSDL2, Compile-Windows64, Compile-Windows64-noSDL2, Compile-WASM]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -136,6 +168,8 @@ jobs:
zip -r -j pc-nzp-linux_armhf.zip pc-nzp-linux_armhf/*
zip -r -j pc-nzp-win32.zip pc-nzp-win32/*
zip -r -j pc-nzp-win64.zip pc-nzp-win64/*
zip -r -j pc-nzp-win32-nosdl.zip pc-nzp-win32-nosdl/*
zip -r -j pc-nzp-win64-nosdl.zip pc-nzp-win64-nosdl/*
zip -r -j pc-nzp-web.zip pc-nzp-web/*
- name: Generate Build Date
id: date
Expand Down Expand Up @@ -208,6 +242,15 @@ jobs:
asset_path: ./pc-nzp-win32.zip
asset_name: pc-nzp-win32.zip
asset_content_type: application/zip
- name: Upload Windows32 Archive (no SDL)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pc-nzp-win32-nosdl.zip
asset_name: pc-nzp-win32-nosdl.zip
asset_content_type: application/zip
- name: Upload Windows64 Archive
uses: actions/upload-release-asset@v1
env:
Expand All @@ -217,6 +260,15 @@ jobs:
asset_path: ./pc-nzp-win64.zip
asset_name: pc-nzp-win64.zip
asset_content_type: application/zip
- name: Upload Windows64 Archive (no SDL)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./pc-nzp-win64-nosdl.zip
asset_name: pc-nzp-win64-nosdl.zip
asset_content_type: application/zip
- name: Upload WASM Archive
uses: actions/upload-release-asset@v1
env:
Expand Down
2 changes: 2 additions & 0 deletions tools/build-nzp-win32-nosdl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd ../engine
make makelibs FTE_TARGET=win32 && make m-rel FTE_TARGET=win32 FTE_CONFIG=nzportable -j32
2 changes: 2 additions & 0 deletions tools/build-nzp-win64-nosdl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd ../engine
make makelibs FTE_TARGET=win64 && make m-rel FTE_TARGET=win64 FTE_CONFIG=nzportable -j32

0 comments on commit 91e2378

Please sign in to comment.