-
Notifications
You must be signed in to change notification settings - Fork 285
54 lines (47 loc) · 1.54 KB
/
msys2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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-gcc mingw-w64-x86_64-libogg
- name: Install pandoc
run: |
choco install pandoc
- name: Build, run tests and prepare package
shell: msys2 {0}
run: |
PATH=$PATH:/c/ProgramData/chocolatey/bin/
./autogen.sh
./configure --enable-static --disable-shared # This is because the libtool helper script doesn't handle UTF-8 filenames correctly
make LDFLAGS='-all-static' # Otherwise ogg isn't linked statically
make check
mkdir flac
cp src/flac/flac.exe flac/flac.exe
cp src/metaflac/metaflac.exe flac/metaflac.exe
strip flac/*.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-win64-static-${{ github.sha}}
path: flac