From 801ba27f20dff851d56a9fc4fe5578a20f501c96 Mon Sep 17 00:00:00 2001 From: Carlos Segarra Date: Wed, 1 Dec 2021 10:15:11 +0000 Subject: [PATCH] change permissions to folder for dist-tests cache --- .github/workflows/tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6a52c590d..f3c8392f8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -97,11 +97,12 @@ jobs: - name: "Check out code" uses: actions/checkout@v2 # --- Cache based on Conan version and ExternalProjects cmake source - - name: Get Conan version + - name: "Get Conan version" id: get-conan-version run: | docker-compose run --rm cli conan --version 2>/tmp/conan-ver-log | tee /tmp/conan-ver grep 'Conan version' /tmp/conan-ver || exit 1 + sudo chown -R $(id -u):$(id -g) ~/.conan echo "::set-output name=conan-version::$(grep 'Conan version' /tmp/conan-ver | tr -d '[:alpha:] ')" shell: bash env: @@ -109,7 +110,7 @@ jobs: - name: Get Conan Version - Show Log if: always() run: cat /tmp/conan-ver-log - - name: Hash ExternalProjects + - name: "Hash ExternalProjects" id: hash-external run: | echo "::set-output name=hash-external::$(sha256sum cmake/ExternalProjects.cmake | cut '-d ' -f 1)" @@ -154,7 +155,7 @@ jobs: run: | echo "::set-output name=conan-version::$(conan --version | tr -d '[:alpha:] ')" shell: bash - - name: Hash ExternalProjects + - name: "Hash ExternalProjects" id: hash-external run: | echo "::set-output name=hash-external::$(sha256sum cmake/ExternalProjects.cmake | cut '-d ' -f 1)"