53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
|
name: Package - Windows
|
||
|
|
||
|
on:
|
||
|
#push:
|
||
|
# branches: [ master ]
|
||
|
|
||
|
#pull_request:
|
||
|
# branches: [ master ]
|
||
|
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
windows:
|
||
|
name: Windows
|
||
|
runs-on: windows-2019
|
||
|
|
||
|
defaults:
|
||
|
run:
|
||
|
shell: msys2 {0}
|
||
|
|
||
|
steps:
|
||
|
- name: Setup MSYS2
|
||
|
uses: msys2/setup-msys2@v2
|
||
|
with:
|
||
|
msystem: MINGW64
|
||
|
update: true
|
||
|
install: >-
|
||
|
git
|
||
|
zip
|
||
|
base-devel
|
||
|
mingw-w64-x86_64-toolchain
|
||
|
mingw-w64-x86_64-scons
|
||
|
mingw-w64-x86_64-pkgconf
|
||
|
mingw-w64-x86_64-SDL2
|
||
|
mingw-w64-x86_64-SDL2_image
|
||
|
mingw-w64-x86_64-SDL2_mixer
|
||
|
mingw-w64-x86_64-physfs
|
||
|
|
||
|
- name: Clone repository
|
||
|
uses: actions/checkout@v3
|
||
|
|
||
|
- name: Configure and build
|
||
|
run: scons -j2 sdl2=1 sdlmixer=1
|
||
|
|
||
|
- name: Package
|
||
|
run: ./contrib/packaging/windows/build_package.sh
|
||
|
|
||
|
- name: Upload artifact
|
||
|
uses: actions/upload-artifact@v3
|
||
|
with:
|
||
|
name: windows
|
||
|
path: '*.zip'
|