Compare commits

..

No commits in common. "74b80cfd4228b32993dc8d16a7101c4943c8b8cc" and "8ef51dc122bcfe44419d53997a8a54b5d7754764" have entirely different histories.

1 changed files with 16 additions and 13 deletions

View File

@ -11,16 +11,16 @@ on:
env:
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: "1G"
jobs:
build_all:
name: Rust project
runs-on: ubuntu-22.04
name: Rust project - latest
runs-on: ubuntu-latest
steps:
- name: Install Linux Packages
- name: Install Dependencies
run: |
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install libssl-dev openssl -y
- uses: actions/checkout@v4
@ -30,30 +30,33 @@ jobs:
with:
# use toolchain version from rust-toolchain.toml
components: rustfmt, clippy
cache: true
cache: false
# avoid the default "-D warnings" which thrashes cache
rustflags: ""
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
# https://blog.arriven.wtf/posts/rust-ci-cache/
- uses: Swatinem/rust-cache@v2
- uses: actions/cache@v3
with:
# will be covered by sscache
cache-targets: false
path: |
~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Early Build
run: |
cargo build --locked --workspace --tests
rustc --version
echo $RUSTFLAGS
cargo build --workspace --tests
- name: Run fmt+clippy
run: |
cargo fmt --all --check
cargo clippy --locked --workspace --all-targets
cargo clippy --workspace --all-targets