Skip to content

Commit

Permalink
Use hendrikmuhs/ccache-action
Browse files Browse the repository at this point in the history
  • Loading branch information
devraymondsh committed Apr 6, 2024
1 parent 83b9d58 commit a0612a2
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/scheduled-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/[email protected]

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

0 comments on commit a0612a2

Please sign in to comment.