-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds three new categories of CI jobs: - Weekly Docker image build testing - Weekly release dry run testing (not currently including `cargo-dist`) - Simplifications to regular testing, including installing `protoc` with Chocolatey on Windows, and using `cargo-nextest` for testing, along with validating `cargo xtask check` in CI now. Signed-off-by: Andrew Lilley Brinker <[email protected]>
- Loading branch information
1 parent
f5a0596
commit cf60542
Showing
3 changed files
with
88 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Docker | ||
|
||
# Run once a week on Monday at midnight. | ||
on: | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
|
||
# This only tries to build the Containerfile, and does not push | ||
# the resulting image to Docker Hub. | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: docker/setup-qemu-action@v3 | ||
- uses: docker/setup-buildx-action@v3 | ||
- uses: docker/build-push-action@v5 | ||
with: | ||
file: Containerfile | ||
push: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Release Dry Run | ||
|
||
# Run once a week on Monday at midnight. | ||
on: | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
RUSTFLAGS: -Dwarnings | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
name: "Test (${{ matrix.os }})" | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 15 | ||
steps: | ||
# Get the repo, get Rust, get `cargo-nextest`, setup caching. | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: taiki-e/install-action@nextest | ||
- uses: swatinem/rust-cache@v2 | ||
with: | ||
key: ${{ matrix.os }} | ||
|
||
# Install the protobuf compiler | ||
- if: runner.os == 'Linux' | ||
run: sudo apt-get install -y protobuf-compiler | ||
- if: runner.os == 'macOS' | ||
run: brew install protobuf | ||
- if: runner.os == 'Windows' | ||
run: choco install protoc | ||
|
||
# Print dependency info (useful for debugging) | ||
- name: Dependency Tree | ||
run: cargo tree | ||
|
||
# Try building as-if for publishing a new version. | ||
- name: Publish | ||
run: cargo publish --dry-run --allow-dirty --verbose -p hipcheck |