Skip to content

Add CI for MSYS2, and package build as artifact #3

Add CI for MSYS2, and package build as artifact

Add CI for MSYS2, and package build as artifact #3

Workflow file for this run

name: Build on MSYS2
on: [ push, pull_request ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
install: autotools mingw-w64-x86_64-libogg
- name: Install pandoc
run: |
choco install pandoc
- name: Build, run tests and prepare package
shell: msys2 {0}
run: |
./autogen.sh
./configure
make
make check
mkdir flac
cp src/flac/flac.exe flac/flac.exe
cp src/metaflac.exe flac/metaflac.exe
cp COPYING.* flac
cp AUTHORS flac
cp README* flac
cp man/*.html flac
- name: Upload logs on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: flac-${{ github.sha }}-${{ github.run_id }}-logs
path: |
./**/*.log
./**/out*.meta
- name: Package build
uses: actions/upload-artifact@v4
with:
name: flac-for-windows-${{ github.sha}}
path: flac