-
Notifications
You must be signed in to change notification settings - Fork 127
71 lines (62 loc) · 1.73 KB
/
macos.yml
File metadata and controls
71 lines (62 loc) · 1.73 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
name: continuous-intergration/macos
on:
pull_request:
push:
branches:
- master
tags:
- v*
paths-ignore:
- 'README.md'
- '.gitlab-ci.yml'
jobs:
check:
name: build-contract-template
strategy:
matrix:
platform:
- macos-latest
toolchain:
- nightly
runs-on: ${{ matrix.platform }}
env:
RUST_BACKTRACE: full
steps:
- name: Checkout sources & submodules
uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: recursive
- uses: actions/setup-node@v2
- run: npm install wasm-opt -g
- name: Install toolchain
id: toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
components: rust-src
override: true
- name: Install cargo-dylint
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-dylint
version: 1
- name: Install dylint-link
uses: baptiste0928/cargo-install@v1
with:
crate: dylint-link
version: 1
- name: Rust Cache
uses: Swatinem/rust-cache@v1.3.0
- name: Build contract template on ${{ matrix.platform }}-${{ matrix.toolchain }}
run: |
wasm-opt --version
cargo -vV
cargo dylint --version
cargo run -- contract --version
cargo run -- contract new foobar
echo "[workspace]" >> foobar/Cargo.toml
cargo run -- contract build --manifest-path=foobar/Cargo.toml
cargo run -- contract check --manifest-path=foobar/Cargo.toml
cargo run -- contract test --manifest-path=foobar/Cargo.toml