File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Alpine
2
+
3
+ on : push
4
+
5
+ jobs :
6
+ alpine :
7
+ runs-on : ubuntu-22.04
8
+ container : alpine:latest
9
+ steps :
10
+ # Git is required so that actions/checkout does a proper Git checkout.
11
+ - name : Install Git in container
12
+ run : |
13
+ apk update
14
+ apk add git
15
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
16
+ # Checks-out the repository under $GITHUB_WORKSPACE.
17
+ - uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+ - name : Install packages
21
+ run : |
22
+ apk update
23
+ apk add cmake g++ git make
24
+ - name : Build statically linked binaries
25
+ run : |
26
+ cd "$GITHUB_WORKSPACE"
27
+ mkdir build-static
28
+ cd build-static
29
+ cmake ../ -DENABLE_LTO=ON -DENABLE_STATIC_LINKING=ON
30
+ # Only build the executable, no tests.
31
+ cmake --build . -j2 --target sha256
32
+ - name : Collect files
33
+ run : |
34
+ mkdir -p "$GITHUB_WORKSPACE"/artifacts
35
+ cd "$GITHUB_WORKSPACE"
36
+ cp build-static/sha256/sha256 artifacts/
37
+ cp ReadMe.de.txt artifacts/
38
+ cp ReadMe.en.txt artifacts/
39
+ cp ChangeLog.md artifacts/
40
+ cp LICENSE artifacts/
41
+ VERSION=$(git describe --always)
42
+ mv artifacts sha256_$VERSION
43
+ tar czf sha256_${VERSION}_linux-amd64-generic.tar.gz sha256_$VERSION
44
+ - name : Upload artifact
45
+ uses : actions/upload-artifact@v4
46
+ with :
47
+ name : sha256_linux-amd64-generic
48
+ path : |
49
+ sha256_*_linux-amd64-generic.tar.gz
You can’t perform that action at this time.
0 commit comments