-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Windows XP MinGW | ||
|
||
on: | ||
release: | ||
types: [published] | ||
paths-ignore: | ||
- '*.md' | ||
- 'docs/**' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create Build Environment | ||
run: > | ||
sudo apt update && | ||
sudo apt install -y cmake gcc-mingw-w64-i686 g++-mingw-w64-i686 pkg-config-mingw-w64-i686 libz-mingw-w64-dev gettext dpkg-dev wget git sudo smpq && | ||
sudo rm /usr/i686-w64-mingw32/lib/libz.dll.a && | ||
sudo Packaging/windows/mingw-prep.sh | ||
- name: Configure CMake | ||
shell: bash | ||
working-directory: ${{github.workspace}} | ||
run: cmake -S. -Bbuild-windowsxp -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCPACK=ON -DCMAKE_TOOLCHAIN_FILE=../CMake/platforms/mingwcc.toolchain.cmake -DTARGET_PLATFORM=windowsXP | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}} | ||
shell: bash | ||
run: | | ||
cmake --build build-windowsxp -j $(nproc) --target package | ||
mv build-windowsxp/devilutionx.zip devilutionx-windows-xp-32bit.zip | ||
- name: Upload-Package | ||
if: ${{ !env.ACT }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: devilutionx-windows-xp-32bit.zip | ||
|
||
- name: Update Release | ||
if: ${{ github.event_name == 'release' && !env.ACT }} | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file: devilutionx-windows-xp-32bit.zip | ||
overwrite: true |