-
Notifications
You must be signed in to change notification settings - Fork 4
79 lines (60 loc) · 1.86 KB
/
Checks.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
name: Checks
on:
push:
branches: [ main, develop ]
pull_request:
branches: "**"
env:
CARGO_TERM_COLOR: always
jobs:
ubuntu-integration-test:
runs-on: ubuntu-latest
steps:
- name: Setup Rust
run: |
rustup toolchain install nightly-2024-12-14 # pinning the nightly version should help with caching dependencies
rustup default nightly-2024-12-14
rustup target add wasm32-unknown-unknown
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
runtime/target/
modules/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run Integration Tests
run: ./testing/integration.sh
ubuntu-docker-build-amd64-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
runtime/target/
key: ${{ runner.os }}-cargo-amd64-${{ hashFiles('**/Cargo.lock') }}
- name: Run Docker Build Test (amd64)
run: cd runtime && docker build -t latest -f plaid/resources/Dockerfile.amd64 .
ubuntu-docker-build-aarch64-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
runtime/target/
key: ${{ runner.os }}-cargo-aarch64-${{ hashFiles('**/Cargo.lock') }}
- name: Run Docker Build Test (aarch64)
run: cd runtime && docker build -t latest -f plaid/resources/Dockerfile.aarch64 .