Skip to content

Commit 1afd8d3

Browse files
committed
Add debian package build to ci
1 parent d27bc47 commit 1afd8d3

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,37 @@ jobs:
1515
- name: Checkout sources
1616
uses: actions/checkout@v3
1717

18-
- name: Install stable toolchain and restore cache
18+
- name: Install stable toolchain, tools, and restore cache
1919
uses: ./.github/workflows/actions/toolchain-and-cache
2020
with:
2121
cache-version: ${{ secrets.CACHE_VERSION }}
22+
cargo-tools: cargo-deb
2223

2324
- name: Build Mithril workspace & publish artifacts
2425
uses: ./.github/workflows/actions/build-upload-mithril-artifact
2526

27+
- name: Build Debian packages
28+
shell: bash
29+
run: |
30+
cargo deb -p mithril-aggregator
31+
cargo deb -p mithril-signer
32+
cargo deb -p mithril-client
33+
34+
- name: Publish Debian packages
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: mithril-deb-packages-${{ runner.os }}-${{ runner.arch }}
38+
path: target/debian/*.deb
39+
if-no-files-found: error
40+
2641
- name: Publish End-to-end runner (${{ runner.os }}-${{ runner.arch }})
2742
uses: actions/upload-artifact@v3
2843
with:
2944
name: mithril-end-to-end-${{ runner.os }}-${{ runner.arch }}
3045
path: target/release/mithril-end-to-end
3146
if-no-files-found: error
3247

48+
3349
build:
3450
strategy:
3551
fail-fast: false
@@ -295,6 +311,12 @@ jobs:
295311
name: mithril-distribution-Linux-X64
296312
path: ./package-Linux-X64
297313

314+
- name: Download Debian packages (Linux-X64)
315+
uses: actions/download-artifact@v3
316+
with:
317+
name: mithril-deb-packages-Linux-x64
318+
path: ./package
319+
298320
- name: Download built artifacts (macOS-X64)
299321
uses: actions/download-artifact@v3
300322
with:

.github/workflows/pre-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ jobs:
2525
workflow: ci.yml
2626
workflow_conclusion: success
2727

28+
- name: Download Debian packages (Linux-X64)
29+
uses: dawidd6/action-download-artifact@v2
30+
with:
31+
name: mithril-deb-packages-Linux-x64
32+
path: ./package
33+
commit: ${{ github.sha }}
34+
workflow: ci.yml
35+
workflow_conclusion: success
36+
2837
- name: Download built artifacts (macOS-x64)
2938
uses: dawidd6/action-download-artifact@v2
3039
with:

0 commit comments

Comments
 (0)