forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 937 Bytes
/
cargo-check.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
name: Run Rust compile checks
on:
push:
branches:
- INF-1273-CI-task-for-Aptos-Move
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
CARGO_BIN: ~/.cargo/bin/cargo
CARGO_NET_GIT_FETCH_WITH_CLI: true
FORGE_BIN: ~/.foundry/bin/forge
SUI_BIN: ~/.cargo/bin/sui
APTOS_BIN: ~/.local/bin/aptos
SCRYPTO_BIN: ~/.cargo/bin/scrypto
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
with:
clean: false
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
- name: Move aptos-framework
if: contains(steps.changed-files.outputs.all_changed_files, 'aptos-move/framework/aptos-framework')
run: |
cd aptos-move/framework/aptos-framework/
${{ env.APTOS_BIN }} move compile --dev
${{ env.APTOS_BIN }} move test --dev
${{ env.APTOS_BIN }} move prover --dev