From 0b87dc1a8557a30f82e9794a43a37a26591f7f3b Mon Sep 17 00:00:00 2001 From: Daniel Brunner Date: Sun, 19 Sep 2021 01:07:57 +0200 Subject: [PATCH] Add action.yml --- action.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..0ecefbe --- /dev/null +++ b/action.yml @@ -0,0 +1,17 @@ +name: Setup ccache +description: Installs and sets up ccache +inputs: + key: + description: An explicit key for restoring and saving the cache + required: true +runs: + using: composite + steps: + - name: Install ccache + run: DEBIAN_FRONTEND=noninteractive sudo apt install -y ccache + + - name: Cache ccache + uses: 0xFEEDC0DE64/cache-with-update@update-cache-on-cachehit + with: + path: ~/.ccache + key: ${{ inputs.key }}