Skip to content

Commit

Permalink
ci: add cache to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 17, 2021
1 parent 2f52e51 commit ddbf6fc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/CI.yml
Expand Up @@ -55,6 +55,21 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache
uses: actions/cache@v2
with:
path: |
./node_modules/
~/.npm
~/AppData/Roaming/npm-cache
./build/zeromq-${{ matrix.zmq_version }}.tar.gz
./zeromq-${{ matrix.zmq_version }}.tar.gz
./libzmq
./build/libzmq
key: "cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-ZMQ_VERSION:${{ matrix.zmq_version }}-Node:${{ matrix.node_version }}-${{ hashFiles('./package.json') }}"
restore-keys: |
"cache-OS:${{ matrix.os }}-arch:${{ matrix.node_arch }}-ZMQ_DRAFT:${{ matrix.zmq_draft }}-ZMQ_VERSION:${{ matrix.zmq_version }}-Node:${{ matrix.node_version }}"
- name: Install Node
uses: actions/setup-node@v2
with:
Expand Down

0 comments on commit ddbf6fc

Please sign in to comment.