Commit 8efeff9 1 parent b9301e4 commit 8efeff9 Copy full SHA for 8efeff9
File tree 3 files changed +62
-41
lines changed
3 files changed +62
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Unix Build
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+ release :
9
+ types : [ published ]
10
+
11
+ env :
12
+ artifacts : |
13
+ me7sum
14
+ ME7Check_linux
15
+ README.md
16
+
17
+ jobs :
18
+ build :
19
+ strategy :
20
+ matrix :
21
+ os : [ 'ubuntu', 'macos']
22
+ runs-on : ${{ matrix.os }}-latest
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - name : make
26
+ run : make
27
+ - name : make test
28
+ run : make test
29
+ - uses : rlespinasse/github-slug-action@v4
30
+ if : ${{ github.event_name != 'release' }}
31
+ with :
32
+ short-length : 6
33
+ - uses : actions/upload-artifact@v4
34
+ if : ${{ github.event_name != 'release' }}
35
+ with :
36
+ name : me7sum-${{ env.GITHUB_SHA_SHORT }}-${{ matrix.os }}
37
+ path : ${{ env.artifacts }}
38
+ - name : Upload ${{ matrix.os }} artifact to release
39
+ if : github.event_name == 'release' && github.event.action == 'published'
40
+ run : |
41
+ ARTIFACTS="${artifacts//$'\n'/ }"
42
+ echo "Zipping ${ARTIFACTS}"
43
+ zip -qr me7sum-${{ github.ref_name }}-${{ matrix.os }}.zip ${ARTIFACTS}
44
+ gh release upload --clobber ${{ github.ref_name }} me7sum-${{ github.ref_name }}-${{ matrix.os }}.zip
45
+ env :
46
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 5
5
branches : [ master ]
6
6
pull_request :
7
7
branches : [ master ]
8
+ release :
9
+ types : [ published ]
10
+
11
+ env :
12
+ artifacts : >
13
+ me7sum.exe
14
+ ME7Check.exe
15
+ README.md
8
16
9
17
jobs :
10
18
build :
11
-
12
19
runs-on : windows-latest
13
-
14
20
steps :
15
21
- uses : actions/checkout@v4
16
22
- uses : TheMrMilchmann/setup-msvc-dev@v3
26
32
if : ${{ github.event_name != 'release' }}
27
33
with :
28
34
name : me7sum-${{ env.GITHUB_SHA_SHORT }}-win
29
- path : |
30
- me7sum.exe
31
- ME7Check.exe
32
- README.md
35
+ path : ${{ env.artifacts }}
36
+ - name : Upload windows artifact to release
37
+ if : github.event_name == 'release' && github.event.action == 'published'
38
+ run : |
39
+ 7z a -tzip me7sum-${{ github.ref_name }}-win.zip ${{ env.artifacts }}
40
+ gh release upload --clobber ${{ github.ref_name }} me7sum-${{ github.ref_name }}-win.zip
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments