[wip] setup cache

This commit is contained in:
Michael Bradley, Jr 2022-09-19 17:06:15 -05:00
parent 14ba617107
commit e0a57217ee
No known key found for this signature in database
GPG Key ID: D0307DBCF21A9A58

View File

@ -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