Skip to content

Commit

Permalink
Use the latest version of sccache if no version is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
miles170 committed Mar 22, 2023
1 parent af5524e commit 580dce4
Show file tree
Hide file tree
Showing 7 changed files with 376 additions and 23 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ jobs:
- name: Build & Test
run: npm run test

test_v0_4_0:
name: Test version 0.4.0
test:
name: Test version
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
version:
- ""
- v0.4.0

steps:
- name: Checkout
Expand All @@ -63,7 +66,7 @@ jobs:
- name: Run sccache-cache
uses: ./
with:
version: "v0.4.0"
version: ${{ matrix.version }}

- name: Run sccache for check
shell: bash
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ https://github.com/marketplace/actions/sccache-action

Just copy and paste the following in your GitHub action:

### Use the latest version of sccache if no version is specified

```
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.2
```

### Specify a given version of sccache

```
Expand Down
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ description: "Setup sccache action"
author: "mozilla"
inputs:
version:
description: "The installed sccache version."
required: true
description: "The installed sccache version. Use the latest version of sccache if not specified."
token:
description: "Used to pull the latest release from sccache. When running this action outside of github.com, you have to pass a personal access token for github.com."
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
runs:
using: "node16"
main: "dist/setup/index.js"
Expand Down
8 changes: 7 additions & 1 deletion dist/setup/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 580dce4

Please sign in to comment.