-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.45 KB
/
Copy pathci-main-cache.yml
File metadata and controls
52 lines (47 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI Main Cache
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
permissions:
contents: read
jobs:
warm-stable-cache:
name: Warm Stable Cache
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
- name: Detect SP1 ELF input changes
id: elf-inputs
run: python3 etc/scripts/ci/check-succinct-elf-inputs.py
- uses: ./.github/actions/setup
with:
free-disk: "true"
native-deps: "true"
mold: "true"
foundry: "true"
sp1: "true"
elf-cache: "true"
rust-cache-shared-key: "stable"
rust-cache-save: "true"
- name: Build CI cache
if: steps.elf-inputs.outputs.needs_rebuild != 'true'
run: just build::ci
- name: Build CI cache with stubbed SP1 ELFs
if: steps.elf-inputs.outputs.needs_rebuild == 'true'
run: |
just build::contracts
BASE_SUCCINCT_ELF_STUB=1 cargo build --locked --workspace --all-targets --profile ci