From a0612a24607bc2e0faad12f2fb5ca5c98528422c Mon Sep 17 00:00:00 2001 From: Mahdi Sharifi Date: Sat, 6 Apr 2024 20:02:40 +0330 Subject: [PATCH] Use hendrikmuhs/ccache-action --- .github/workflows/scheduled-builds.yml | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/.github/workflows/scheduled-builds.yml b/.github/workflows/scheduled-builds.yml index 368d131..fad95bf 100644 --- a/.github/workflows/scheduled-builds.yml +++ b/.github/workflows/scheduled-builds.yml @@ -12,15 +12,6 @@ jobs: container: image: ubuntu:devel steps: - - name: Restore CCache - uses: actions/cache@v4 - with: - path: .ccache - save-always: true - key: ${{ runner.os }}:libnode:ccache:${{ github.run_number }} - restore-keys: | - ${{ runner.os }}:libnode:ccache: - - name: Update system run: apt-get update && apt-get --yes upgrade @@ -30,25 +21,12 @@ jobs: - name: Install building tools run: apt-get install --yes git python3 python3-pip gcc g++ make ninja-build nodejs ccache - - name: Setup CCache - run: | - update-ccache-symlinks - echo "/usr/lib/ccache" >> "$GITHUB_PATH" - - ccacheDir="${GITHUB_WORKSPACE}/.ccache" - test -d "$ccacheDir" || mkdir "$ccacheDir" - - echo "CCACHE_DIR=$ccacheDir" >> "$GITHUB_ENV" - - name: Clone the repo run: git clone https://github.com/devraymondsh/libnode-distributable + - run: cd libnode-distributable && node index.js - name: Run the script - run: cd libnode-distributable && node index.js - - - name: Show CCache Status - shell: bash - run: ccache -s + uses: hendrikmuhs/ccache-action@v1.2 - name: A buncha ls run: ls libnode-distributable ; ls libnode-distributable/out ; ls libnode-distributable/out/Release