Skip to content

Commit

Permalink
ci: Add workflows to run beta, nightly builds
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
olix0r committed Feb 11, 2022
1 parent 0530c00 commit 46bcc2c
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Builds the proxy on the beta toolchain to help catch Rust regressions before they bite us hit stable.
name: beta

on:
pull_request:
paths:
- .github/workflows/beta.yml
schedule:
# Run weekly on wednesday @ midnightish Pacific-time.
- cron: "30 7 * * 3"

env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
container:
image: docker://rust:1.56.1-buster
timeout-minutes: 20
continue-on-error: true
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- run: rustup toolchain install --profile=minimal beta
- run: cargo +beta build --release -p linkerd2-proxy
32 changes: 32 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Builds the proxy on the nightly toolchain to help catch Rust regressions before they bite us hit
# stable.
name: nightly

on:
pull_request:
paths:
- .github/workflows/nightly.yml
schedule:
# Run daily @ midnightish Pacific-time.
- cron: "0 8 * * *"

env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
container:
image: docker://rust:1.56.1-buster
timeout-minutes: 20
continue-on-error: true
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- run: rustup toolchain install --profile=minimal nightly
- run: cargo +nightly build --release -p linkerd2-proxy

0 comments on commit 46bcc2c

Please sign in to comment.