Skip to content

Commit

Permalink
Come on
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed Feb 17, 2024
1 parent f0cec4e commit f897ccf
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ jobs:
id: ccache_cache_timestamp
run: echo "timestamp=$(date +%Y-%m-%d-%H-%M)" >> $GITHUB_OUTPUT

- name: Configure ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ runner.os }}-${{ github.job }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: ${{ runner.os }}-${{ github.job }}-ccache-

- name: Prepare Cppcheck Cache Key
id: prepare_cppcheck_cache_key
run: echo "cppcheck_tag=$(curl -s https://api.github.com/repos/danmar/cppcheck/releases/latest | jq .tag_name)" >> $GITHUB_OUTPUT
Expand All @@ -78,6 +71,13 @@ jobs:
working-directory: ${{ env.GEANY_SOURCE_PATH }}
run: echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

- name: Configure ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ runner.os }}-${{ github.job }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: ${{ runner.os }}-${{ github.job }}-ccache-

- name: Configure Cppcheck Cache
id: cppcheck_cache
uses: actions/cache@v4
Expand Down Expand Up @@ -168,9 +168,10 @@ jobs:
- name: Configure
run: |
# Add previously built cppcheck to $PATH
ls -la ${{ env.CPPCHECK_CACHE_PATH }}/build/bin
echo "PATH=$PATH:${{ env.CPPCHECK_CACHE_PATH }}/build/bin" >> "$GITHUB_ENV"
# Add previously built cppcheck to $PATH, for this and for succeeding steps
export "PATH=$PATH:${{ env.CPPCHECK_CACHE_PATH }}/build/bin"
echo "PATH=$PATH" >> "$GITHUB_ENV"
which cppcheck
NOCONFIGURE=1 ./autogen.sh
Expand Down

0 comments on commit f897ccf

Please sign in to comment.