Skip to content

Commit

Permalink
feat: Implement basic sccache action support
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Jan 9, 2023
1 parent 02ded5c commit 4e31d5b
Show file tree
Hide file tree
Showing 11 changed files with 17,853 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore dist changes
dist/index.js -diff
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test sccache

on: [push, pull_request]

jobs:
v0_3_3:
name: Test version 0.3.3
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-lastest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x

- name: npm install
run: npm install

- name: Run sccache-cache
uses: ./
with:
version: "v0.3.3"

- name: Run sccache stat for check
shell: bash
run: ${SCCACHE_PATH} --stat
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
lib/
11 changes: 11 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"parser": "typescript"
}
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: "Sccache Action"
description: "Setup sccache action"
author: "mozilla"
inputs:
version:
description: "The installed sccache version."
required: true
runs:
using: "node16"
main: "dist/index.js"
branding:
icon: "star"
color: "orange"
Loading

0 comments on commit 4e31d5b

Please sign in to comment.