File tree 1 file changed +26
-8
lines changed
1 file changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -23,26 +23,44 @@ jobs:
23
23
--title ${VERSION} \
24
24
--target ${{ github.sha }}
25
25
26
- attach-artifact :
27
- name : ' Jammy Package '
28
- runs-on : ubuntu-latest
29
- needs : draft-release
26
+ build-jammy-package :
27
+ name : ' Build Ubuntu Jammy package '
28
+ runs-on : [self-hosted, linux, normal]
29
+
30
30
steps :
31
+ - uses : actions/checkout@v4
31
32
- name : ' Check out code'
32
33
uses : actions/checkout@v4
33
- - name : ' Make artifact'
34
+ with :
35
+ path : k-llvm-jammy
36
+ submodules : recursive
37
+
38
+ - name : ' Build package in Docker'
39
+ uses : ./.github/actions/test-package
40
+ with :
41
+ os : ubuntu
42
+ distro : jammy
43
+ llvm : 15
44
+ build-package : package/debian/build-package jammy
45
+ test-package : package/debian/test-package
46
+ pkg-name : k-llvm-backend_amd64_ubuntu_jammy.deb
47
+
48
+ - name : ' Upload to release'
34
49
env :
35
50
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
51
run : |
37
52
set -x
38
53
VERSION=v$(cat package/version)
39
- echo 'hi there!' > k-llvm-backend.deb
40
- gh release upload ${VERSION} k-llvm-backend.deb
54
+ cp k-llvm-backend_amd64_ubuntu_jammy.deb k-llvm-backend_${VERSION}_amd64_ubuntu_jammy.deb
55
+ gh release upload \
56
+ --repo runtimeverification/llvm-backend \
57
+ --clobber ${VERSION} \
58
+ k-llvm-backend_${VERSION}_amd64_ubuntu_jammy.deb
41
59
42
60
finish-release :
43
61
name : ' Finalise release'
44
62
runs-on : ubuntu-latest
45
- needs : attach-artifact
63
+ needs : build-jammy-package
46
64
steps :
47
65
- name : ' Check out code'
48
66
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments