-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (40 loc) · 1.01 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
name: Build
on:
push:
branches:
- main
- release-*
tags:
# YYYYMMDD
- "20[0-9][0-9][0-1][0-9][0-3][0-9]*"
pull_request:
branches:
workflow_dispatch:
env:
RUST_LOG: info
RUST_BACKTRACE: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.12.0
name: Cancel Outdated Builds
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- uses: actions/checkout@v4
name: Checkout Repository
with:
submodules: true
- uses: Swatinem/rust-cache@v2
name: Enable Rust Caching
- name: Build
run: |
cargo build --release --workspace
- name: Test
run: |
cargo test --release --workspace --all-features --no-run
cargo test --release --workspace --all-features --verbose -- --test-threads 1 --nocapture
timeout-minutes: 30