forked from Arena1X/InsightArena
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (57 loc) · 1.6 KB
/
Copy pathcontract-ci.yml
File metadata and controls
72 lines (57 loc) · 1.6 KB
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
name: Contract CI
on:
push:
branches:
- main
paths:
- "contracts/**"
- ".github/workflows/contract-ci.yml"
pull_request:
paths:
- "contracts/**"
- ".github/workflows/contract-ci.yml"
jobs:
open-market:
name: Build, Lint, and Test open-market
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts/open-market
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Rust Toolchain
run: |
rustup update stable
rustup default stable
rustup target add wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "contracts/open-market -> target"
- name: Unit Tests
run: cargo test
- name: WASM Build
run: cargo build --target wasm32-unknown-unknown --release
creator-event-manager:
name: Build, Lint, and Test creator-event-manager
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts/creator-event-manager
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Rust Toolchain
run: |
rustup update stable
rustup default stable
rustup target add wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "contracts/creator-event-manager -> target"
- name: Unit Tests
run: cargo test
- name: WASM Build
run: cargo build --target wasm32-unknown-unknown --release