Fix hashflags and show error when hashflags fail
This commit is contained in:
parent
b4328a0d74
commit
76dd104293
7
.github/workflows/main.yaml
vendored
7
.github/workflows/main.yaml
vendored
@ -188,7 +188,7 @@ jobs:
|
|||||||
if: ${{ runner.os == 'macOS' }}
|
if: ${{ runner.os == 'macOS' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
brew install ninja macfuse libomp ccache ${{matrix.compiler.homebrew_package}}
|
brew install ninja macfuse libomp ccache md5sha1sum ${{matrix.compiler.homebrew_package}}
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -275,7 +275,10 @@ jobs:
|
|||||||
- name: Hash flags
|
- name: Hash flags
|
||||||
id: hash_flags
|
id: hash_flags
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=hash_flags::$(echo __${{matrix.extra_cmake_flags}}__${{matrix.extra_cxxflags}}__ | md5sum)"
|
# Write it into file first so we fail if the command fails. Errors inside $() are ignored by bash unfortunately.
|
||||||
|
echo __${{matrix.extra_cmake_flags}}__${{matrix.extra_cxxflags}}__ | md5sum > /tmp/hash_flags
|
||||||
|
echo "::set-output name=hash_flags::$(cat /tmp/hash_flags)"
|
||||||
|
rm /tmp/hash_flags
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Retrieve ccache cache
|
- name: Retrieve ccache cache
|
||||||
# We're using an S3 based cache because the standard GitHub Action cache (actions/cache) only gives us 5GB of storage and we need more
|
# We're using an S3 based cache because the standard GitHub Action cache (actions/cache) only gives us 5GB of storage and we need more
|
||||||
|
Loading…
Reference in New Issue
Block a user