forked from AleoNet/aleo-setup
-
Notifications
You must be signed in to change notification settings - Fork 64
69 lines (62 loc) · 2.02 KB
/
cli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build phase-2-cli
on:
push:
branches: [ main, production ]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
env:
GIT_LFS_SKIP_SMUDGE: 1
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
nightly_version: [nightly-2022-05-27]
make:
- name: Build Trusted Setup CLI
command: cargo build --release --bin namada-ts --features=cli
cache_key: trusted-setup
cache_version: v1
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: full
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup rust toolchain
uses: oxidecomputer/actions-rs_toolchain@ad3f86084a8a5acf2c09cb691421b31cf8af7a36
with:
profile: default
override: true
- name: Setup rust nightly
uses: oxidecomputer/actions-rs_toolchain@ad3f86084a8a5acf2c09cb691421b31cf8af7a36
with:
toolchain: ${{ matrix.nightly_version }}
profile: default
- name: Cache cargo registry
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.make.cache_key }}-${{ matrix.make.cache_version }}-cargo-
- name: ${{ matrix.make.name }}
run: ${{ matrix.make.command }}
- name: Upload binaries
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@v3
with:
name: trusted-setup-cli-${{ matrix.os }}-${{ github.sha }}
path: |
target/release/namada-ts
target/release/namada-ts.exe
retention-days: 3