Skip to content

Commit

Permalink
ci: create artifact from MSYS2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed May 29, 2024
1 parent 88fc3b6 commit 9f33bdf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ jobs:
# Checks-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: >-
git
mingw-w64-x86_64-cmake
mingw-w64-x86_64-gcc
mingw-w64-x86_64-make
Expand Down Expand Up @@ -47,3 +49,23 @@ jobs:
cd build-static
cmake -DENABLE_LTO=ON -DENABLE_STATIC_LINKING=ON ../
cmake --build . -j2
- name: Collect files
run: |
export MSYSTEM=MINGW64
mkdir -p "$GITHUB_WORKSPACE"/artifacts
cd "$GITHUB_WORKSPACE"
cp build-static/sha256/sha256.exe artifacts/
cp ReadMe.de.txt artifacts/
cp ReadMe.en.txt artifacts/
cp ChangeLog.md artifacts/
cp LICENSE artifacts/
VERSION=$(git describe --always)
mv artifacts sha256_$VERSION
'/c/Program Files/7-Zip/7z.exe' a -r sha256_${VERSION}_win64.zip sha256_$VERSION
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: sha256_win64
if-no-files-found: error
path: |
sha256_*_win64.zip

0 comments on commit 9f33bdf

Please sign in to comment.