This commit is contained in:
parent
7f78d2274c
commit
6d2150d1b2
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@ -7,6 +7,9 @@ on:
|
|||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
RUST_BINARY_NAME: monzo-ingestion
|
RUST_BINARY_NAME: monzo-ingestion
|
||||||
|
SCCACHE_GHA_ENABLED: "on"
|
||||||
|
SCCACHE_GHA_VERSION: "1"
|
||||||
|
RUSTC_WRAPPER: "sccache"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -33,15 +36,18 @@ jobs:
|
|||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y gcc-aarch64-linux-gnu build-essential musl-tools
|
apt-get install -y gcc-aarch64-linux-gnu build-essential musl-tools
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Run sccache-cache
|
||||||
uses: actions/cache@v3
|
uses: mozilla-actions/sccache-action@v0.0.6
|
||||||
with:
|
|
||||||
path: |
|
# - name: Cache dependencies
|
||||||
~/.cargo
|
# uses: actions/cache@v3
|
||||||
target/
|
# with:
|
||||||
key: "${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}"
|
# path: |
|
||||||
restore-keys: |
|
# ~/.cargo
|
||||||
${{ runner.os }}-cargo-
|
# target/
|
||||||
|
# key: "${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}"
|
||||||
|
# restore-keys: |
|
||||||
|
# ${{ runner.os }}-cargo-
|
||||||
|
|
||||||
- name: Build (x86_64)
|
- name: Build (x86_64)
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
@ -93,6 +99,10 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
BINARY_NAME=${{ env.RUST_BINARY_NAME }}
|
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
|
- uses: robiningelbrecht/ntfy-action@v1.0.0
|
||||||
name: Notify via ntfy.sh
|
name: Notify via ntfy.sh
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user