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