Skip to content

Commit 9f33bdf

Browse files
committed
ci: create artifact from MSYS2 build
1 parent 88fc3b6 commit 9f33bdf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/msys2.yml

+22
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ jobs:
1212
# Checks-out the repository under $GITHUB_WORKSPACE.
1313
- uses: actions/checkout@v4
1414
with:
15+
fetch-depth: 0
1516
submodules: 'recursive'
1617
- uses: msys2/setup-msys2@v2
1718
with:
1819
msystem: mingw64
1920
update: true
2021
install: >-
22+
git
2123
mingw-w64-x86_64-cmake
2224
mingw-w64-x86_64-gcc
2325
mingw-w64-x86_64-make
@@ -47,3 +49,23 @@ jobs:
4749
cd build-static
4850
cmake -DENABLE_LTO=ON -DENABLE_STATIC_LINKING=ON ../
4951
cmake --build . -j2
52+
- name: Collect files
53+
run: |
54+
export MSYSTEM=MINGW64
55+
mkdir -p "$GITHUB_WORKSPACE"/artifacts
56+
cd "$GITHUB_WORKSPACE"
57+
cp build-static/sha256/sha256.exe artifacts/
58+
cp ReadMe.de.txt artifacts/
59+
cp ReadMe.en.txt artifacts/
60+
cp ChangeLog.md artifacts/
61+
cp LICENSE artifacts/
62+
VERSION=$(git describe --always)
63+
mv artifacts sha256_$VERSION
64+
'/c/Program Files/7-Zip/7z.exe' a -r sha256_${VERSION}_win64.zip sha256_$VERSION
65+
- name: Upload artifact
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: sha256_win64
69+
if-no-files-found: error
70+
path: |
71+
sha256_*_win64.zip

0 commit comments

Comments
 (0)