1 name: windows-artifacts
5 branches: [ test_artifacts, win_artifacts ]
14 # see https://ariya.io/2020/07/on-github-actions-with-msys2
15 runs-on: windows-latest
20 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
21 - uses: msys2/setup-msys2@5beef6d11f48bba68b9eb503e3adc60b23c0cc36 # tag=v2
24 install: make zlib git p7zip mingw-w64-x86_64-gcc
26 - name: display versions
31 - name: Building zlib to static link
33 git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib
34 make -C zlib -f win32/Makefile.gcc libz.a
36 - name: Building zstd programs in 64-bit mode
38 CPPFLAGS=-I../zlib LDFLAGS=../zlib/libz.a make -j allzstd MOREFLAGS=-static V=1
40 - name: Create artifacts
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/
47 - name: Publish zstd-$VERSION-win64.zip
48 uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # tag=v3
50 path: ${{ github.workspace }}/zstd-${{ github.ref_name }}-win64.zip
51 name: zstd-${{ github.ref_name }}-win64.zip