1010 - main
1111 workflow_dispatch :
1212
13+ env :
14+ # configure sccache to cache the build artifacts (on github caches)
15+ SCCACHE_GHA_ENABLED : " true"
16+ RUSTC_WRAPPER : " sccache"
17+
1318jobs :
1419 # Release unpublished packages.
1520 release-plz-release :
@@ -22,15 +27,16 @@ jobs:
2227 uses : actions/checkout@v4
2328 with :
2429 fetch-depth : 0
25- - name : Install Rust toolchain
26- uses : dtolnay/rust-toolchain@stable
27- - name : Run release-plz
28- uses :
release-plz/[email protected] 30+ -
uses :
mozilla-actions/[email protected] 31+ - uses : dtolnay/rust-toolchain@stable
32+ -
uses :
release-plz/[email protected] 2933 with :
3034 command : release
3135 env :
3236 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3337 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
38+ - run : ${SCCACHE_PATH} --show-stats
39+ shell : bash
3440
3541 # Create a PR with the new versions and changelog, preparing the next release.
3642 release-plz-pr :
@@ -47,12 +53,13 @@ jobs:
4753 uses : actions/checkout@v4
4854 with :
4955 fetch-depth : 0
50- - name : Install Rust toolchain
51- uses : dtolnay/rust-toolchain@stable
52- - name : Run release-plz
53- uses :
release-plz/[email protected] 56+ -
uses :
mozilla-actions/[email protected] 57+ - uses : dtolnay/rust-toolchain@stable
58+ -
uses :
release-plz/[email protected] 5459 with :
5560 command : release-pr
5661 env :
5762 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5863 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
64+ - run : ${SCCACHE_PATH} --show-stats
65+ shell : bash
0 commit comments