git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / .github / workflows / windows-artifacts.yml
CommitLineData
648db22b 1name: windows-artifacts
2
3on:
4 push:
5 branches: [ test_artifacts, win_artifacts ]
6 release:
7 types:
8 - published
9
10permissions: read-all
11
12jobs:
13 windows-64-artifacts:
14 # see https://ariya.io/2020/07/on-github-actions-with-msys2
15 runs-on: windows-latest
16 defaults:
17 run:
18 shell: msys2 {0}
19 steps:
20 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
21 - uses: msys2/setup-msys2@5beef6d11f48bba68b9eb503e3adc60b23c0cc36 # tag=v2
22 with:
23 msystem: MINGW64
24 install: make zlib git p7zip mingw-w64-x86_64-gcc
25 update: true
26 - name: display versions
27 run: |
28 make -v
29 cc -v
30
31 - name: Building zlib to static link
32 run: |
33 git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib
34 make -C zlib -f win32/Makefile.gcc libz.a
35
36 - name: Building zstd programs in 64-bit mode
37 run: |
38 CPPFLAGS=-I../zlib LDFLAGS=../zlib/libz.a make -j allzstd MOREFLAGS=-static V=1
39
40 - name: Create artifacts
41 run: |
42 ./lib/dll/example/build_package.bat
43 mv bin/ zstd-${{ github.ref_name }}-win64/
44 7z a -tzip -mx9 zstd-${{ github.ref_name }}-win64.zip zstd-${{ github.ref_name }}-win64/
45 cd ..
46
47 - name: Publish zstd-$VERSION-win64.zip
48 uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # tag=v3
49 with:
50 path: ${{ github.workspace }}/zstd-${{ github.ref_name }}-win64.zip
51 name: zstd-${{ github.ref_name }}-win64.zip