speed-dreams-code/.forgejo/workflows/build-w64-mingw32.yml
Xavier Del Campo Romero 8cb2219134
Some checks failed
/ build (pull_request) Failing after 34s
build-w64-mingw32.yml: Clone repository recursively
Now that speed-dreams-data is provided as a submodule, this workflow can
package a NSIS installer that contains both code and data.
2025-01-15 07:16:39 +01:00

37 lines
1.3 KiB
YAML

on: [pull_request]
jobs:
build:
runs-on: docker
container:
image: forge.a-lec.org/speed-dreams/debian-i686-w64-mingw32:stable
steps:
- name: Download third-party libraries
run: curl -so 3rdparty.tar.gz ${{ vars.THIRDPARTY_URL }}
- name: Untar third-party libraries
run: tar -xf 3rdparty.tar.gz
- name: Clone repository recursively
run: |
git clone -q \
--recursive \
-b ${{ env.GITHUB_HEAD_REF }} \
${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}.git \
src
- name: Configure project
run: |
cmake -B build \
-DCMAKE_FIND_ROOT_PATH=${{ env.GITHUB_WORKSPACE }}/3rdParty \
-DCMAKE_TOOLCHAIN_FILE=packaging/3rdParty-devel/i686-w64-mingw32.cmake
working-directory: src
- name: Build project
run: cmake --build build -j$(nproc --all)
working-directory: src
- name: Build installer
run: cpack -G NSIS
working-directory: src/build
- name: Upload installer
run: upload-artifact *.exe
working-directory: src/build
env:
URL: ${{ vars.STORE_URL }}
USERNAME: ${{ secrets.STORE_USERNAME }}
PASSWORD: ${{ secrets.STORE_PASSWORD }}