Skip to content

Commit 3203f4f

Browse files
committed
ci: create artifact from MSYS2 build
1 parent 88fc3b6 commit 3203f4f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/msys2.yml

+21
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
msystem: mingw64
1919
update: true
2020
install: >-
21+
git
2122
mingw-w64-x86_64-cmake
2223
mingw-w64-x86_64-gcc
2324
mingw-w64-x86_64-make
@@ -47,3 +48,23 @@ jobs:
4748
cd build-static
4849
cmake -DENABLE_LTO=ON -DENABLE_STATIC_LINKING=ON ../
4950
cmake --build . -j2
51+
- name: Collect files
52+
run: |
53+
export MSYSTEM=MINGW64
54+
mkdir -p "$GITHUB_WORKSPACE"/artifacts
55+
cd "$GITHUB_WORKSPACE"
56+
cp build-static/sha256/sha256.exe artifacts/
57+
cp ReadMe.de.txt artifacts/
58+
cp ReadMe.en.txt artifacts/
59+
cp ChangeLog.md artifacts/
60+
cp LICENSE artifacts/
61+
VERSION=$(git describe --always)
62+
mv artifacts sha256_$VERSION
63+
'/c/Program Files/7-Zip/7z.exe' a -r sha256_${VERSION}_win64.zip sha256_$VERSION
64+
- name: Upload artifact
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: sha256_win64
68+
if-no-files-found: error
69+
path: |
70+
sha256_*_win64.zip

0 commit comments

Comments
 (0)