Skip to content

Commit d2ff58a

Browse files
authored
Merge pull request #557 from input-output-hk/djo/543/adapt-ci-workflow
Adapt ci workflow to Release Process: * Add `pre-release.yml` and `release/yml` workflows * refactor `ci.yml`: extract doc gen to a dedicated workflow (`doc.yml`), add mithril-client build for mac & windows, split build job in three (check, build, test) with one matrix per environment (linux, mac, windows)
2 parents 4456966 + b8ffa03 commit d2ff58a

File tree

7 files changed

+540
-338
lines changed

7 files changed

+540
-338
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: build-upload-mithril-artifact
2+
description: Build the Mithril workspace & publish the artifacts using 'actions/upload-artifact'
3+
inputs:
4+
build-args:
5+
description: Arguments to pass to 'cargo build'
6+
required: false
7+
default: ''
8+
cache-version:
9+
description: Version of the current cache
10+
required: false
11+
default: ''
12+
runs:
13+
using: "composite"
14+
steps:
15+
- name: Install stable toolchain
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
profile: minimal
19+
toolchain: stable
20+
override: true
21+
22+
- name: Rust Cache
23+
uses: Swatinem/rust-cache@v2
24+
with:
25+
key: ${{ runner.os }}-cache-v${{ inputs.cache-version }}
26+
27+
- name: Cargo build
28+
uses: actions-rs/cargo@v1
29+
with:
30+
command: build
31+
args: --release ${{ inputs.build-args }}
32+
33+
- name: Publish Mithril Distribution (${{ runner.os }}-${{ runner.arch }})
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: mithril-distribution-${{ runner.os }}-${{ runner.arch }}
37+
path: |
38+
target/release/libmithril.*
39+
target/release/libmithril_common.*
40+
target/release/mithril-aggregator
41+
target/release/mithril-aggregator.exe
42+
target/release/mithril-client
43+
target/release/mithril-client.exe
44+
target/release/mithril-signer
45+
target/release/mithril-signer.exe
46+
target/release/mithrildemo
47+
target/release/mithrildemo.exe
48+
if-no-files-found: error

0 commit comments

Comments
 (0)