-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (35 loc) · 1.06 KB
/
test.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
name: test
on:
pull_request:
paths:
- rust-toolchain
- '**/*.rs'
- Cargo.lock
- .github/workflows/test.yml
permissions:
contents: read
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v44-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just-cargo fetch --locked
- run: just-cargo test-build --frozen --workspace
- run: just-cargo test --frozen --workspace
cli-build:
timeout-minutes: 10
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v44-rust-musl
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just fetch
- run: just profile=debug static=true target=x86_64-unknown-linux-musl cli-build
- run: mv "$(just --evaluate profile=debug target=x86_64-unknown-linux-musl cli-bin)" linkerd-failover-linux-amd64
- run: ls -lh linkerd-failover-linux-amd64