-
Notifications
You must be signed in to change notification settings - Fork 12
62 lines (60 loc) · 1.72 KB
/
test.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: Test
on:
workflow_dispatch:
pull_request:
paths:
- "**.go"
- "crates/**"
- "!crates/e2e-move-tests/**"
- "precompile/**"
push:
branches:
- main
- "release/*"
paths:
- "**.go"
- "crates/**"
- "!crates/e2e-move-tests/**"
- "precompile/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Rust libmovevm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Make free space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Install latest rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.80.1
- name: Build Rust
run: make build-rust
- uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: Test
run: |
# TODO - If we do not run "make build-linux", golang succeeds to find the shared libraries.
# However, if we run "make build-linux", golang fails to find the shared libraries because
# it tries to find libmovevm.so and libcompiler.so which is not present.
cp api/libmovevm.x86_64.so api/libmovevm.so
cp api/libcompiler.x86_64.so api/libcompiler.so
make test