Merge pull request #246 from baseplate-admin/patch-1

Fix code block formatting in README.md
This commit is contained in:
Sylvestre Ledru
2026-04-23 00:13:40 +02:00
committed by GitHub
+10 -10
View File
@@ -14,14 +14,14 @@ Just copy and paste the following in your GitHub action:
### Use the latest version of sccache if no version is specified ### Use the latest version of sccache if no version is specified
``` ```yml
- name: Run sccache-cache - name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.9 uses: mozilla-actions/sccache-action@v0.0.9
``` ```
### Conditionally run cache and enable it ### Conditionally run cache and enable it
``` ```yml
- name: Run sccache-cache only on non-release runs - name: Run sccache-cache only on non-release runs
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch' if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
uses: mozilla-actions/sccache-action@v0.0.9 uses: mozilla-actions/sccache-action@v0.0.9
@@ -36,7 +36,7 @@ Just copy and paste the following in your GitHub action:
Versions prior to sccache v0.10.0 probably will not work. Versions prior to sccache v0.10.0 probably will not work.
``` ```yml
- name: Run sccache-cache - name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.9 uses: mozilla-actions/sccache-action@v0.0.9
with: with:
@@ -48,7 +48,7 @@ Versions prior to sccache v0.10.0 probably will not work.
Note that using the previous declaration will automatically create a Note that using the previous declaration will automatically create a
`Post Run sccache-cache` task. `Post Run sccache-cache` task.
``` ```yml
- name: Run sccache stat for check - name: Run sccache stat for check
shell: bash shell: bash
run: ${SCCACHE_PATH} --show-stats run: ${SCCACHE_PATH} --show-stats
@@ -56,7 +56,7 @@ Note that using the previous declaration will automatically create a
### disable stats report ### disable stats report
``` ```yml
- name: Run sccache-cache - name: Run sccache-cache
uses: mozilla-actions/sccache-action uses: mozilla-actions/sccache-action
with: with:
@@ -67,7 +67,7 @@ Note that using the previous declaration will automatically create a
For Rust code, the following environment variables should be set: For Rust code, the following environment variables should be set:
``` ```yml
env: env:
SCCACHE_GHA_ENABLED: "true" SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache" RUSTC_WRAPPER: "sccache"
@@ -77,20 +77,20 @@ For Rust code, the following environment variables should be set:
For C/C++ code, the following environment variables should be set: For C/C++ code, the following environment variables should be set:
``` ```yml
env: env:
SCCACHE_GHA_ENABLED: "true" SCCACHE_GHA_ENABLED: "true"
``` ```
With cmake, add the following argument: With cmake, add the following argument:
``` ```yml
-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
``` ```
With configure, call it with: With configure, call it with:
``` ```sh
# With gcc # With gcc
./configure CC="sccache gcc" CXX="sccache gcc" ./configure CC="sccache gcc" CXX="sccache gcc"
# With clang # With clang
@@ -101,7 +101,7 @@ With configure, call it with:
When using the action on GitHub Enterprise Server installations a valid GitHub.com token must be provided. When using the action on GitHub Enterprise Server installations a valid GitHub.com token must be provided.
``` ```yml
- name: Run sccache-cache - name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.9 uses: mozilla-actions/sccache-action@v0.0.9
with: with: