forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 3
130 lines (123 loc) · 5.05 KB
/
llvm-ci-pre-land.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# CI jobs to be run upon the code lands to the main branch or GitHub Action test branches.
name: llvm-ci-pre-land
on:
push:
branches: [solana]
pull_request:
branches: [solana]
workflow_dispatch:
jobs:
unit-tests:
uses: ./.github/workflows/unit-test.yml
move-cli-tests-solana:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build-setup
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- id: acquire_solana_tools
shell: bash
run: |
source ./scripts/acquire_solana_tools.sh
echo "MOVE_DEV_PATH=$MOVE_DEV_PATH" >> $GITHUB_ENV
echo "PLATFORM_TOOLS_PATH=$PLATFORM_TOOLS_PATH" >> $GITHUB_ENV
echo "MOVE_NATIVE_PATH=${{ github.workspace }}/external-crates/move/solana/move-native" >> $GITHUB_ENV
- name: run Solana-based move cli tests
run: "cargo test --manifest-path external-crates/move/Cargo.toml --features solana-backend -p move-cli --test move_unit_tests_solana -- --test-threads=1"
env:
LLVM_SYS_170_PREFIX: ${{ env.MOVE_DEV_PATH }}
MOVE_NATIVE: ${{ env.MOVE_NATIVE_PATH }}
PLATFORM_TOOLS_ROOT: ${{ env.PLATFORM_TOOLS_PATH }}
move-stdlib-tests-solana:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build-setup
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- id: acquire_solana_tools
shell: bash
run: |
source ./scripts/acquire_solana_tools.sh
echo "MOVE_DEV_PATH=$MOVE_DEV_PATH" >> $GITHUB_ENV
echo "PLATFORM_TOOLS_PATH=$PLATFORM_TOOLS_PATH" >> $GITHUB_ENV
echo "MOVE_NATIVE_PATH=${{ github.workspace }}/external-crates/move/solana/move-native" >> $GITHUB_ENV
- name: run Solana-based move stdlib tests
run: "cargo run --manifest-path external-crates/move/Cargo.toml --features solana-backend -p move-cli -- test -p external-crates/move/crates/move-stdlib/Move.toml --arch solana --solana"
env:
LLVM_SYS_170_PREFIX: ${{ env.MOVE_DEV_PATH }}
MOVE_NATIVE: ${{ env.MOVE_NATIVE_PATH }}
PLATFORM_TOOLS_ROOT: ${{ env.PLATFORM_TOOLS_PATH }}
move-unit-test-framework-tests-solana:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build-setup
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- id: acquire_solana_tools
shell: bash
run: |
source ./scripts/acquire_solana_tools.sh
echo "MOVE_DEV_PATH=$MOVE_DEV_PATH" >> $GITHUB_ENV
echo "PLATFORM_TOOLS_PATH=$PLATFORM_TOOLS_PATH" >> $GITHUB_ENV
echo "MOVE_NATIVE_PATH=${{ github.workspace }}/external-crates/move/solana/move-native" >> $GITHUB_ENV
- name: run Solana-based move unit test framework tests
run: "cargo test --manifest-path external-crates/move/Cargo.toml --features solana-backend -p move-unit-test -- --test-threads=1"
env:
LLVM_SYS_170_PREFIX: ${{ env.MOVE_DEV_PATH }}
MOVE_NATIVE: ${{ env.MOVE_NATIVE_PATH }}
PLATFORM_TOOLS_ROOT: ${{ env.PLATFORM_TOOLS_PATH }}
build-testsuite-tests-solana:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build-setup
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- id: acquire_solana_tools
shell: bash
run: |
source ./scripts/acquire_solana_tools.sh
echo "MOVE_DEV_PATH=$MOVE_DEV_PATH" >> $GITHUB_ENV
echo "PLATFORM_TOOLS_PATH=$PLATFORM_TOOLS_PATH" >> $GITHUB_ENV
echo "MOVE_NATIVE_PATH=${{ github.workspace }}/external-crates/move/solana/move-native" >> $GITHUB_ENV
- name: run Solana-based move unit test framework tests
run: "cargo test --manifest-path external-crates/move/Cargo.toml --features solana-backend -p move-cli --test build_testsuite_solana -- --test-threads=1"
env:
LLVM_SYS_170_PREFIX: ${{ env.MOVE_DEV_PATH }}
MOVE_NATIVE: ${{ env.MOVE_NATIVE_PATH }}
PLATFORM_TOOLS_ROOT: ${{ env.PLATFORM_TOOLS_PATH }}