-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathaction.yml
85 lines (75 loc) · 2.35 KB
/
action.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: "Stacks Blockchain Test Environment"
description: "Stacks Blockchain Test Environment"
branding:
icon: "archive"
color: "gray-dark"
inputs:
genesis:
description: "Restore genesis archive"
required: false
default: "false"
btc-version:
description: "Bitcoin version"
required: false
default: "0.20.0"
runs:
using: "composite"
steps:
## cleanup runner
- name: Cleanup Runner
id: runner_cleanup
uses: stacks-network/actions/cleanup/disk@main
## Checkout the code
- name: Checkout the latest code
id: git_checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
## Install rust toolchain (llvm-tools-preview)
- name: Setup Rust Toolchain
id: setup_rust_toolchain
uses: actions-rust-lang/setup-rust-toolchain@b113a30d27a8e59c969077c0a0168cc13dab5ffc # v1.8.0
with:
toolchain: stable
components: llvm-tools-preview
cache: false
## Restore cargo cache data
- name: Restore Cargo Cache
id: restore_cargo_cache
uses: stacks-network/actions/stacks-core/cache/cargo@main
with:
action: restore
## Restore nextest target cache data
- name: Restore Target Cache
id: restore_target_cache
uses: stacks-network/actions/stacks-core/cache/target@main
with:
action: restore
## Restore bitcoin cache data
- name: Restore Bitcoin Binary Cache
id: restore_bitcoin_cache
uses: stacks-network/actions/stacks-core/cache/bitcoin@main
with:
action: restore
btc-version: ${{ inputs.btc-version }}
## Symlink bitoind to $PATH
- name: Link Bitcoin Binary
id: bitcoin_binary
shell: bash
run: |
sudo ln -s ~/bitcoin/bin/bitcoind /bin/
ls -al /bin/bitcoind
## Restore nextest test archive cache data
- name: Restore Test Archive Cache
if: |
inputs.genesis != 'true'
id: restore_test_cache
uses: stacks-network/actions/stacks-core/cache/test-archive@main
with:
action: restore
## Restore nextest genesis test archive cache data
- name: Restore Genesis Test Archive Cache
if: |
inputs.genesis == 'true'
id: restore_genesis_test_cache
uses: stacks-network/actions/stacks-core/cache/genesis-test-archive@main
with:
action: restore