Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
0lvin committed Dec 15, 2023
1 parent f1afd8a commit bdafc0b
Showing 1 changed file with 27 additions and 13 deletions.
40 changes: 27 additions & 13 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,48 @@ jobs:
strategy:
fail-fast: false
matrix:
sys:
- mingw64
include:
- { sys: mingw32, env: i686 }
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
install: >-
git
make
zip
mingw-w64-x86_64-curl
mingw-w64-x86_64-make
mingw-w64-x86_64-gcc
mingw-w64-x86_64-SDL2
mingw-w64-x86_64-vulkan-headers
mingw-w64-x86_64-openal
mingw-w64-x86_64-ffmpeg
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
mkdir yquake2remaster
cp -rv release/* yquake2remaster
zip -9r yquake2remaster.zip yquake2remaster
- 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.zip
yquake2remaster-${{matrix.env}}-${{github.ref_name}}.zip

0 comments on commit bdafc0b

Please sign in to comment.