work around CRLF linefeeds in Cygwin checkout #518
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
# This workflow will build and test gbsplay in various configurations on Windows. | |
name: Windows Build | |
on: | |
push: | |
pull_request: | |
types: [opened] | |
schedule: | |
- cron: '23 4 5 * *' | |
jobs: | |
build-windows: | |
name: Build and test on Windows | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
type: [CYGWIN] | |
flags: [''] | |
include: | |
- type: CYGWIN | |
cygwin: true | |
packages: gcc-core | |
plugouts: dsound devdsp | |
shell: C:\cygwin\bin\bash.exe '{0}' | |
defaults: | |
run: | |
shell: ${{ matrix.shell }} | |
steps: | |
- if: ${{ matrix.cygwin }} | |
name: Don't create CRLF linefeeds on checkout | |
run: | | |
"C:\Program Files\Git\bin\git.exe" config --global core.autocrlf input | |
- uses: actions/checkout@v4 | |
- if: ${{ matrix.msystem }} | |
name: Setup MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{ matrix.type }} | |
install: git base-devel ${{ matrix.packages }} libintl gettext-devel zlib-devel | |
release: false | |
update: false | |
- if: ${{ matrix.cygwin }} | |
name: Setup Cygwin | |
uses: cygwin/cygwin-install-action@master | |
with: | |
packages: git make ${{ matrix.packages }} gettext-devel zlib-devel | |
- name: Build and test | |
env: | |
CONFIGURE_FLAGS: ${{ matrix.flags }} --enable-verbosebuild | |
run: | | |
make | |
- name: Check activated plugouts | |
run: | | |
./check_plugouts.sh ${{ matrix.plugouts }} | |
- name: Check WAV plugout | |
run: | | |
./check_plugout_wav.sh | |
- name: Check build flags | |
run: | | |
./check_buildflags.sh --disable-hardening ${{ matrix.flags }} --enable-verbosebuild | |
- name: Dump configure on error | |
if: ${{ failure() }} | |
run: | | |
bash -x -v configure && cat config.err |