mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-09 12:35:51 +00:00
[wip] setup cache
This commit is contained in:
parent
14ba617107
commit
e0a57217ee
25
.github/workflows/testground.yml
vendored
25
.github/workflows/testground.yml
vendored
@ -57,22 +57,21 @@ jobs:
|
|||||||
# Add executables built with Go to PATH
|
# Add executables built with Go to PATH
|
||||||
echo "${HOME}/go/bin" >> ${GITHUB_PATH}
|
echo "${HOME}/go/bin" >> ${GITHUB_PATH}
|
||||||
|
|
||||||
# - name: Restore Testground executable from cache
|
- name: Calculate Testground commit hash used in cache key
|
||||||
# id: testground-exe-cache
|
id: calc-testground-hash
|
||||||
# uses: actions/cache@v3
|
run: |
|
||||||
# with:
|
echo "::set-output name=hash::$(git rev-parse $(git branch --show-current))"
|
||||||
# path: ~/go/bin/testground
|
working-directory: testground
|
||||||
# key: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ matrix.nim_branch }}-${{ ... }}-cache_nonce:${{ matrix.cache_nonce }}
|
|
||||||
|
|
||||||
# - name: Build and start Testground daemon
|
- name: Restore Testground executable from cache
|
||||||
# run: |
|
id: testground-exe-cache
|
||||||
# mkdir -p ${HOME}/repos && cd ${HOME}/repos
|
uses: actions/cache@v3
|
||||||
# git clone https://github.com/testground/testground.git && cd testground
|
with:
|
||||||
# make install
|
path: ~/go/bin/testground
|
||||||
# export PATH="${HOME}/go/bin:${PATH}"
|
key: ${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ matrix.nim_branch }}-testground_commit-${{ steps.calc-testground-hash.outputs.hash }}-cache_nonce:${{ matrix.cache_nonce }}
|
||||||
# testground daemon &
|
|
||||||
|
|
||||||
- name: Build Testground executable
|
- name: Build Testground executable
|
||||||
|
if: steps.testground-exe-cache.outputs.cache-hit != 'true'
|
||||||
run: make install
|
run: make install
|
||||||
working-directory: testground
|
working-directory: testground
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user