Skip to content

Commit

Permalink
cache to main script
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Mar 9, 2022
1 parent 4be998d commit 6816b0a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ jobs:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
Expand All @@ -30,10 +40,6 @@ jobs:
path: |
build
!build/libar.bc
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: git submodule update --init
- run: npm install
- run: docker run -dit --name emscripten -v $(pwd):/src emscripten/emsdk:3.1.6 bash
Expand Down

0 comments on commit 6816b0a

Please sign in to comment.