-
Notifications
You must be signed in to change notification settings - Fork 311
46 lines (38 loc) · 986 Bytes
/
Copy pathcontract-ci.yml
File metadata and controls
46 lines (38 loc) · 986 Bytes
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
name: Soroban Smart Contracts CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
- name: Install Rust target for Soroban
run: |
source $HOME/.cargo/env
rustup target add wasm32v1-none
- name: Install Stellar CLI with Homebrew
run: |
brew update
brew install stellar-cli
stellar --version
- name: Build Cargo project
run: |
source $HOME/.cargo/env
cargo build --verbose
- name: Build Soroban contract
run: |
source $HOME/.cargo/env
stellar contract build --verbose
- name: Run Cargo tests
run: |
source $HOME/.cargo/env
cargo test --verbose