File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ jobs:
12
12
# Checks-out the repository under $GITHUB_WORKSPACE.
13
13
- uses : actions/checkout@v4
14
14
with :
15
+ fetch-depth : 0
15
16
submodules : ' recursive'
16
17
- uses : msys2/setup-msys2@v2
17
18
with :
18
19
msystem : mingw64
19
20
update : true
20
21
install : >-
22
+ git
21
23
mingw-w64-x86_64-cmake
22
24
mingw-w64-x86_64-gcc
23
25
mingw-w64-x86_64-make
47
49
cd build-static
48
50
cmake -DENABLE_LTO=ON -DENABLE_STATIC_LINKING=ON ../
49
51
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
You can’t perform that action at this time.
0 commit comments