Skip to content

Commit a0612a2

Browse files
committed
Use hendrikmuhs/ccache-action
1 parent 83b9d58 commit a0612a2

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

.github/workflows/scheduled-builds.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ jobs:
1212
container:
1313
image: ubuntu:devel
1414
steps:
15-
- name: Restore CCache
16-
uses: actions/cache@v4
17-
with:
18-
path: .ccache
19-
save-always: true
20-
key: ${{ runner.os }}:libnode:ccache:${{ github.run_number }}
21-
restore-keys: |
22-
${{ runner.os }}:libnode:ccache:
23-
2415
- name: Update system
2516
run: apt-get update && apt-get --yes upgrade
2617

@@ -30,25 +21,12 @@ jobs:
3021
- name: Install building tools
3122
run: apt-get install --yes git python3 python3-pip gcc g++ make ninja-build nodejs ccache
3223

33-
- name: Setup CCache
34-
run: |
35-
update-ccache-symlinks
36-
echo "/usr/lib/ccache" >> "$GITHUB_PATH"
37-
38-
ccacheDir="${GITHUB_WORKSPACE}/.ccache"
39-
test -d "$ccacheDir" || mkdir "$ccacheDir"
40-
41-
echo "CCACHE_DIR=$ccacheDir" >> "$GITHUB_ENV"
42-
4324
- name: Clone the repo
4425
run: git clone https://github.com/devraymondsh/libnode-distributable
4526

27+
- run: cd libnode-distributable && node index.js
4628
- name: Run the script
47-
run: cd libnode-distributable && node index.js
48-
49-
- name: Show CCache Status
50-
shell: bash
51-
run: ccache -s
29+
uses: hendrikmuhs/[email protected]
5230

5331
- name: A buncha ls
5432
run: ls libnode-distributable ; ls libnode-distributable/out ; ls libnode-distributable/out/Release

0 commit comments

Comments
 (0)