Try sccache
Some checks failed
Build and Publish / Build and Test (push) Failing after 3m14s

This commit is contained in:
Joshua Coles 2024-10-17 09:59:37 +01:00
parent 7f78d2274c
commit 6d2150d1b2

View File

@ -7,6 +7,9 @@ on:
env:
CARGO_TERM_COLOR: always
RUST_BINARY_NAME: monzo-ingestion
SCCACHE_GHA_ENABLED: "on"
SCCACHE_GHA_VERSION: "1"
RUSTC_WRAPPER: "sccache"
jobs:
build:
@ -33,15 +36,18 @@ jobs:
apt-get update
apt-get install -y gcc-aarch64-linux-gnu build-essential musl-tools
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo
target/
key: "${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}"
restore-keys: |
${{ runner.os }}-cargo-
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.6
# - name: Cache dependencies
# uses: actions/cache@v3
# with:
# path: |
# ~/.cargo
# target/
# key: "${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}"
# restore-keys: |
# ${{ runner.os }}-cargo-
- name: Build (x86_64)
uses: actions-rs/cargo@v1
@ -93,6 +99,10 @@ jobs:
build-args: |
BINARY_NAME=${{ env.RUST_BINARY_NAME }}
- name: Run sccache stat for check
shell: bash
run: ${SCCACHE_PATH} --show-stats
- uses: robiningelbrecht/ntfy-action@v1.0.0
name: Notify via ntfy.sh
if: always()