Skip to content

Commit

Permalink
change permissions to folder for dist-tests cache
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Dec 1, 2021
1 parent ee84d11 commit 801ba27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,20 @@ 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:
CONAN_CACHE_MOUNT_SOURCE: ~/.conan/
- 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)"
Expand Down Expand Up @@ -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)"
Expand Down

0 comments on commit 801ba27

Please sign in to comment.