windows #25
Workflow file for this run
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
name: Build windows application | |
run-name: windows | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { sys: mingw32, env: i686 } | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{matrix.sys}} | |
update: true | |
install: >- | |
git | |
make | |
zip | |
mingw-w64-${{matrix.env}}-curl | |
mingw-w64-${{matrix.env}}-ffmpeg | |
mingw-w64-${{matrix.env}}-gcc | |
mingw-w64-${{matrix.env}}-make | |
mingw-w64-${{matrix.env}}-openal | |
mingw-w64-${{matrix.env}}-SDL2 | |
mingw-w64-${{matrix.env}}-vulkan-headers | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Build Release code | |
shell: msys2 {0} | |
run: | | |
make | |
- name: Create release package | |
shell: msys2 {0} | |
run: | | |
mkdir yquake2remaster-${{matrix.env}}-${{github.ref_name}} | |
cp -rv LICENSE README.md yquake2remaster-${{matrix.env}}-${{github.ref_name}} | |
cp -rv release/* yquake2remaster-${{matrix.env}}-${{github.ref_name}} | |
cp -rv stuff/mapfixes/* yquake2remaster-${{matrix.env}}-${{github.ref_name}} | |
cp -v /${{matrix.env}}/bin/libopenal-1.dll yquake2remaster-${{matrix.env}}-${{github.ref_name}}/openal32.dll | |
cp -v /${{matrix.env}}/bin/SDL2.dll yquake2remaster-${{matrix.env}}-${{github.ref_name}}/SDL2.dll | |
cp -v /${{matrix.env}}/bin/libcurl-4.dll yquake2remaster-${{matrix.env}}-${{github.ref_name}}/curl.dll | |
cp -v /${{matrix.env}}/bin/avcodec-60.dll yquake2remaster-${{matrix.env}}-${{github.ref_name}}/avcodec-60.dll | |
cp -v /${{matrix.env}}/bin/avformat-60.dll yquake2remaster-${{matrix.env}}-${{github.ref_name}}/avformat-60.dll | |
cp -v /${{matrix.env}}/bin/avutil-58.dll yquake2remaster-${{matrix.env}}-${{github.ref_name}}/avutil-58.dll | |
cp -v /${{matrix.env}}/bin/swresample-4.dll yquake2remaster-${{matrix.env}}-${{github.ref_name}}/swresample-4.dll | |
cp -v /${{matrix.env}}/bin/swscale-7.dll yquake2remaster-${{matrix.env}}-${{github.ref_name}}/swscale-7.dll | |
zip -9r yquake2remaster-${{matrix.env}}-${{github.ref_name}}.zip yquake2remaster-${{matrix.env}}-${{github.ref_name}} | |
- name: Upload Release Asset | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
yquake2remaster-${{matrix.env}}-${{github.ref_name}}.zip |