Skip to content

Commit cd0eed9

Browse files
committed
Try building for release
1 parent 9fea4ed commit cd0eed9

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,44 @@ jobs:
2323
--title ${VERSION} \
2424
--target ${{ github.sha }}
2525
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+
3030
steps:
31+
- uses: actions/checkout@v4
3132
- name: 'Check out code'
3233
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'
3449
env:
3550
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3651
run: |
3752
set -x
3853
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
4159
4260
finish-release:
4361
name: 'Finalise release'
4462
runs-on: ubuntu-latest
45-
needs: attach-artifact
63+
needs: build-jammy-package
4664
steps:
4765
- name: 'Check out code'
4866
uses: actions/checkout@v4

0 commit comments

Comments
 (0)