@@ -14,14 +14,14 @@ Just copy and paste the following in your GitHub action:
1414
1515### Use the latest version of sccache if no version is specified
1616
17- ```
17+ ``` yml
1818- name : Run sccache-cache
1919 uses : mozilla-actions/sccache-action@v0.0.9
2020` ` `
2121
2222### Conditionally run cache and enable it
2323
24- ```
24+ ` ` ` yml
2525- name : Run sccache-cache only on non-release runs
2626 if : github.event_name != 'release' && github.event_name != 'workflow_dispatch'
2727 uses : mozilla-actions/sccache-action@v0.0.9
@@ -36,7 +36,7 @@ Just copy and paste the following in your GitHub action:
3636
3737Versions prior to sccache v0.10.0 probably will not work.
3838
39- ```
39+ ` ` ` yml
4040- name : Run sccache-cache
4141 uses : mozilla-actions/sccache-action@v0.0.9
4242 with :
@@ -48,15 +48,15 @@ Versions prior to sccache v0.10.0 probably will not work.
4848Note that using the previous declaration will automatically create a
4949` Post Run sccache-cache` task.
5050
51- ```
51+ ` ` ` yml
5252- name: Run sccache stat for check
5353 shell: bash
5454 run: ${SCCACHE_PATH} --show-stats
5555` ` `
5656
5757# ## disable stats report
5858
59- ```
59+ ` ` ` yml
6060- name: Run sccache-cache
6161 uses: mozilla-actions/sccache-action
6262 with:
@@ -67,7 +67,7 @@ Note that using the previous declaration will automatically create a
6767
6868For Rust code, the following environment variables should be set :
6969
70- ```
70+ ` ` ` yml
7171 env:
7272 SCCACHE_GHA_ENABLED: "true"
7373 RUSTC_WRAPPER: "sccache"
@@ -77,20 +77,20 @@ For Rust code, the following environment variables should be set:
7777
7878For C/C++ code, the following environment variables should be set :
7979
80- ```
80+ ` ` ` yml
8181 env:
8282 SCCACHE_GHA_ENABLED: "true"
8383` ` `
8484
8585With cmake, add the following argument :
8686
87- ```
87+ ` ` ` yml
8888-DCMAKE_C_COMPILER_LAUNCHER=sccache
8989-DCMAKE_CXX_COMPILER_LAUNCHER=sccache
9090` ` `
9191
9292With configure, call it with :
93- ```
93+ ` ` ` sh
9494# With gcc
9595./configure CC="sccache gcc" CXX="sccache gcc"
9696# With clang
@@ -101,7 +101,7 @@ With configure, call it with:
101101
102102When using the action on GitHub Enterprise Server installations a valid GitHub.com token must be provided.
103103
104- ```
104+ ` ` ` yml
105105- name: Run sccache-cache
106106 uses: mozilla-actions/sccache-action@v0.0.9
107107 with:
0 commit comments