Skip to content

Merge branch 'master' of github.com:chocolate-doom/chocolate-doom #178

Merge branch 'master' of github.com:chocolate-doom/chocolate-doom

Merge branch 'master' of github.com:chocolate-doom/chocolate-doom #178

Workflow file for this run

name: msys2
on:
push:
branches:
- "master"
tags:
- "*"
paths-ignore:
- "**.md"
pull_request:
branches:
- "master"
paths-ignore:
- "**.md"
- "**.yml"
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
fail-fast: false
matrix:
include:
- { sys: mingw64, env: x86_64 }
- { sys: mingw32, env: i686 }
steps:
- name: Install pandoc
shell: cmd
run: choco install pandoc
- name: Extract Version Number
shell: bash
run: echo "VERSION=${GITHUB_REF##*-}" >> $GITHUB_ENV
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{ matrix.sys }}
path-type: inherit
install: >-
autotools
zip
mingw-w64-${{matrix.env}}-gcc
mingw-w64-${{matrix.env}}-SDL2
mingw-w64-${{matrix.env}}-SDL2_mixer
mingw-w64-${{matrix.env}}-SDL2_net
mingw-w64-${{matrix.env}}-libpng
mingw-w64-${{matrix.env}}-libsamplerate
mingw-w64-${{matrix.env}}-fluidsynth
- uses: actions/checkout@v3
- name: Configure
run: |
./autogen.sh
- name: Build
run: make -j4
- name: Package
run: |
cd pkg/win32
make
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Win-${{ matrix.env }}
path: pkg/win32/*.zip
- name: Release
if: ${{ contains(github.ref, 'tags') }}
uses: ncipollo/release-action@v1
with:
name: Crispy Doom ${{ env.VERSION }}
bodyFile: CHANGELOG.md
allowUpdates: true
artifacts: pkg/win32/*.zip