Compare commits

...

10 Commits

Author SHA1 Message Date
GroovieGermanikus 74b80cfd42 Merge branch 'faster-ci-hacking' into ci 2023-09-14 07:50:11 +02:00
GroovieGermanikus 7b074e8821 cleanup 2023-09-14 07:48:47 +02:00
GroovieGermanikus 2b2da60f74 ubuntu 22 2023-09-13 23:12:42 +02:00
GroovieGermanikus ebb701e0cc sscache + Swatinem 2023-09-13 23:09:08 +02:00
GroovieGermanikus a42194584f remove sccache from cache 2023-09-13 22:07:36 +02:00
GroovieGermanikus c95a7ddf3a cache sccache 2023-09-13 21:43:14 +02:00
GroovieGermanikus 5499d55c25 enable branch 2023-09-13 21:18:45 +02:00
GroovieGermanikus 5011427312 fix yaml 2023-09-13 21:17:34 +02:00
GroovieGermanikus d6d8387958 Revert "experiment with sccache"
This reverts commit 8ef51dc122.
2023-09-13 21:16:20 +02:00
GroovieGermanikus 05ba9045ee Revert "debug version"
This reverts commit cbb834f13d.
2023-09-13 21:16:17 +02:00
1 changed files with 13 additions and 16 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 - latest
runs-on: ubuntu-latest
name: Rust project
runs-on: ubuntu-22.04
steps:
- name: Install Dependencies
- name: Install Linux Packages
run: |
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install libssl-dev openssl -y
- uses: actions/checkout@v4
@ -30,33 +30,30 @@ jobs:
with:
# use toolchain version from rust-toolchain.toml
components: rustfmt, clippy
cache: false
cache: true
# 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
- uses: actions/cache@v3
# https://blog.arriven.wtf/posts/rust-ci-cache/
- uses: Swatinem/rust-cache@v2
with:
path: |
~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
target/
# will be covered by sscache
cache-targets: false
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Early Build
run: |
rustc --version
echo $RUSTFLAGS
cargo build --workspace --tests
cargo build --locked --workspace --tests
- name: Run fmt+clippy
run: |
cargo fmt --all --check
cargo clippy --workspace --all-targets
cargo clippy --locked --workspace --all-targets