Skip to content

Commit d410b44

Browse files
committed
ci: Add workflows to run beta, nightly builds
We currently only really catch Rust regressions as they hit stable. This change adds workflows to build the proxy daily against `nightly` and weekly against `beta`. These workflows are separated so that they can run on different schedules and so that a failure on one toolchain does not interfere with the other. Signed-off-by: Oliver Gould <[email protected]>
1 parent 0530c00 commit d410b44

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/workflows/beta.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Builds the proxy on the beta toolchain to help catch Rust regressions before they bite us hit stable.
2+
name: beta
3+
4+
on:
5+
pull_request:
6+
paths:
7+
- .github/workflows/beta.yml
8+
schedule:
9+
# Run weekly on wednesday @ midnightish Pacific-time.
10+
- cron: "30 7 * * 3"
11+
12+
env:
13+
CARGO_INCREMENTAL: 0
14+
CARGO_NET_RETRY: 10
15+
RUST_BACKTRACE: short
16+
RUSTUP_MAX_RETRIES: 10
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
container:
25+
image: docker://rust:1.56.1-buster
26+
timeout-minutes: 20
27+
continue-on-error: true
28+
steps:
29+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
30+
- run: rustup toolchain install --profile=minimal beta
31+
- run: cargo +beta build --release -p linkerd2-proxy

.github/workflows/nightly.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Builds the proxy on the nightly toolchain to help catch Rust regressions before they bite us hit
2+
# stable.
3+
name: nightly
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- .github/workflows/nightly.yml
9+
schedule:
10+
# Run daily @ midnightish Pacific-time.
11+
- cron: "0 8 * * *"
12+
13+
env:
14+
CARGO_INCREMENTAL: 0
15+
CARGO_NET_RETRY: 10
16+
RUST_BACKTRACE: short
17+
RUSTUP_MAX_RETRIES: 10
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
container:
26+
image: docker://rust:1.56.1-buster
27+
timeout-minutes: 20
28+
continue-on-error: true
29+
steps:
30+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
31+
- run: rustup toolchain install --profile=minimal nightly
32+
- run: cargo +nightly build --release -p linkerd2-proxy

0 commit comments

Comments
 (0)