-
Notifications
You must be signed in to change notification settings - Fork 33
62 lines (51 loc) · 1.56 KB
/
release.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
name: Binary Release
on:
workflow_run:
workflows: ["Cargo Check"]
types:
- completed
jobs:
build:
runs-on:
labels: movement-runner
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: 'recursive' # Ensures submodules are fetched
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Install windows target
run: rustup target add x86_64-pc-windows-gnu
- name: Install mac target
run: rustup target add x86_64-apple-darwin
- name: Install aarch64 target
run: rustup target add aarch64-unknown-linux-gnu
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential
- name: Run dev setup script
run: |
cd "$GITHUB_WORKSPACE/aptos-pre-core"
chmod -R 755 ./scripts
echo "yes" | ./scripts/dev_setup.sh
- name: Build binaries
run: |
cd "$GITHUB_WORKSPACE/m1"
RUSTFLAGS="--cfg tokio_unstable" cargo build --release
- name: Build binaries
run: |
cd "$GITHUB_WORKSPACE/m1"
ls -l $GITHUB_WORKSPACE/m1/target/release
- name: Archive binaries
uses: actions/upload-artifact@v3
with:
name: subnet
path: |
$GITHUB_WORKSPACE/m1/target/release/subnet