ci: cache concretelib build output

caching concretelib build will reduce the overall testing time for MacOS
which currently takes ~15mn only to build concretelib
This commit is contained in:
youben11
2022-03-02 12:17:27 +01:00
committed by Umut
parent a5f6146b4f
commit 965fc997e8

View File

@@ -139,6 +139,16 @@ jobs:
path: concrete
token: ${{ secrets.GH_TOKEN }}
- name: Get ConcreteLib commit hash
id: concretelib-hash
run: cd ${{ github.workspace }}/concrete && echo "::set-output name=COMMIT_SHA::`git rev-parse HEAD`"
- name: Cache ConcreteLib
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/concrete/target
key: concrete-compiler-concrete-lib-${{ steps.concretelib-hash.outputs.COMMIT_SHA }}
- name: Install Deps
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y