Skip to content

Commit

Permalink
Do not pretend to cache rust build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jul 23, 2022
1 parent 19a7189 commit b327e4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: ./dev/release/run-rat.sh .

prettier:
name: Use prettier to check formatting of documents
name: Use prettier to check formatting of markdown documents
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,9 @@ on:

jobs:

# build the library, a compilation step used by multiple steps below
linux-build-lib:
name: Build Libraries on AMD64 Rust ${{ matrix.rust }}
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ amd64 ]
rust: [ stable ]
container:
image: ${{ matrix.arch }}/rust
env:
# Disable full debug symbol generation to speed up CI build and keep memory down
# "1" means line tables only, which is useful for panic tracebacks.
RUSTFLAGS: "-C debuginfo=1"
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
uses: ./.github/actions/setup-builder
with:
rust-version: ${{ matrix.rust }}
- name: Build Workspace
run: |
cargo build
# test the crate
linux-test:
name: Test Workspace on AMD64 Rust ${{ matrix.rust }}
needs: [ linux-build-lib ]
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -159,8 +134,6 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
# TODO: this won't cache anything, which is expensive. Setup this action
# with a OS-dependent path.
- name: Setup Rust toolchain
run: |
rustup toolchain install ${{ matrix.rust }} --no-self-update
Expand All @@ -176,7 +149,6 @@ jobs:
clippy:
name: Clippy
needs: [ linux-build-lib ]
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -264,12 +236,6 @@ jobs:
path: /home/runner/.cargo
# this key is not equal because the user is different than on a container (runner vs github)
key: cargo-coverage-cache3-
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: /home/runner/target
# this key is not equal because coverage uses different compilation flags.
key: ${{ runner.os }}-${{ matrix.arch }}-target-coverage-cache3-${{ matrix.rust }}-
- name: Run coverage
run: |
export CARGO_HOME="/home/runner/.cargo"
Expand Down Expand Up @@ -311,11 +277,6 @@ jobs:
with:
path: /github/home/.cargo
key: cargo-wasm32-cache3-
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: /github/home/target
key: ${{ runner.os }}-${{ matrix.arch }}-target-wasm32-cache3-${{ matrix.rust }}
- name: Setup Rust toolchain for WASM
run: |
rustup toolchain install ${{ matrix.rust }}
Expand Down

0 comments on commit b327e4e

Please sign in to comment.