Skip to content

Commit

Permalink
Use xtask-base
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-bourne committed Oct 20, 2023
1 parent 29dc42f commit 6cc3a7f
Show file tree
Hide file tree
Showing 7 changed files with 728 additions and 46 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
xtask = "run --package xtask --"
100 changes: 100 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# This file was generated by [xtask-base](https://github.com/simon-bourne/rust-xtask-base).
# Please do not edit!
name: ci-tests
on: [push, pull_request]
jobs:
tests-ubuntu-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: 1.73
profile: minimal
default: true
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo xtask codegen --check
- run: cargo clippy --all-targets -- -D warnings -D clippy::all
- run: cargo test
- run: cargo build --all-targets
- run: cargo doc
tests-macos-latest:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: 1.73
profile: minimal
default: true
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo xtask codegen --check
- run: cargo clippy --all-targets -- -D warnings -D clippy::all
- run: cargo test
- run: cargo build --all-targets
- run: cargo doc
tests-windows-latest:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: 1.73
profile: minimal
default: true
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo xtask codegen --check
- run: cargo clippy --all-targets -- -D warnings -D clippy::all
- run: cargo test
- run: cargo build --all-targets
- run: cargo doc
release-tests-ubuntu-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: 1.73
profile: minimal
default: true
- uses: Swatinem/rust-cache@v2
- run: cargo test --benches --tests --release
release-tests-macos-latest:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: 1.73
profile: minimal
default: true
- uses: Swatinem/rust-cache@v2
- run: cargo test --benches --tests --release
release-tests-windows-latest:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: 1.73
profile: minimal
default: true
- uses: Swatinem/rust-cache@v2
- run: cargo test --benches --tests --release
lints-ubuntu-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: nightly-2023-10-14
profile: minimal
default: true
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- run: cargo install cargo-udeps --locked --version 0.1.43
- run: cargo udeps --all-targets
45 changes: 0 additions & 45 deletions .github/workflows/tests.yml

This file was deleted.

Loading

0 comments on commit 6cc3a7f

Please sign in to comment.