Skip to content

Commit

Permalink
Add CI for MSYS2, and package build as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmf01 committed Oct 30, 2024
1 parent a7d69df commit 910c1ac
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Actions
name: Generic cross-platform tests

on:
push:
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build on MSYS2

on: [ push, pull_request ]

jobs:
build:
runs-on: windows-latest
default:
run:
shell: msys2 {0}
steps:
- 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
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
2 changes: 1 addition & 1 deletion .github/workflows/options.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Actions for specific options
name: Building with specific options

on:
push:
Expand Down

0 comments on commit 910c1ac

Please sign in to comment.