-
Notifications
You must be signed in to change notification settings - Fork 25
50 lines (39 loc) · 1.15 KB
/
build.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
name: Build & Test Pop-CLI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
GITHUB_ACTOR: pop-cli
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Free up space on runner
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true
- name: Setup git config
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- uses: actions/checkout@v3
- name: Check Feature Contracts Excl.
run: cargo check --no-default-features --features contract
- uses: actions/checkout@v3
- name: Check Features Parachain Excl.
run: cargo check --no-default-features --features parachain
- uses: actions/checkout@v3
- name: Build default features
run: cargo build
- name: Run tests
run: cargo test --verbose