Skip to content

Commit

Permalink
Fix CI caching? Maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
Siguza committed Jul 4, 2021
1 parent cc47a67 commit 217eae6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ jobs:
- name: Voodoo magic
id: voodoo
uses: actions/cache@v2
env:
cache-name: repocache
with:
key: repocache
key: ${{ github.event_name }}-${{ github.ref }}-${{ github.run_id }}
restore-keys: |
push-${{ github.ref }}-
push-
path: |
**
- name: Checkout repository
Expand All @@ -34,7 +35,10 @@ jobs:
submodules: true
- name: Update repository
if: steps.voodoo.outputs.cache-hit == 'true'
run: git pull && git submodule update --recursive
run: |
git fetch --all
git reset --hard origin/$(git branch --show-current)
git submodule update --recursive --remote
- name: Compile
run: EMBEDDED_CC='clang-10' EMBEDDED_AR='llvm-ar-10' EMBEDDED_RANLIB='llvm-ranlib-10' make all
- name: Archive
Expand Down

0 comments on commit 217eae6

Please sign in to comment.