mirror of
https://github.com/ClaytonWWilson/miryoku_zmk.git
synced 2025-12-15 18:38:46 +00:00
Fix cache
This commit is contained in:
parent
a8f527eb3c
commit
914dd6ccf4
39
.github/workflows/main.yml
vendored
39
.github/workflows/main.yml
vendored
@ -182,24 +182,20 @@ jobs:
|
|||||||
remote="$user-$repo"
|
remote="$user-$repo"
|
||||||
echo "manifest:\n remotes:\n - name: $remote\n url-base: https://github.com/$user\n projects:\n - name: zmk\n remote: $remote\n repo-path: $repo\n revision: $branch\n import: app/west.yml\n self:\n path: config" > config/west.yml
|
echo "manifest:\n remotes:\n - name: $remote\n url-base: https://github.com/$user\n projects:\n - name: zmk\n remote: $remote\n repo-path: $repo\n revision: $branch\n import: app/west.yml\n self:\n path: config" > config/west.yml
|
||||||
cat config/west.yml
|
cat config/west.yml
|
||||||
- name: Cache
|
- name: Cache zmk
|
||||||
if: true
|
if: true
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
bootloader/
|
|
||||||
modules/
|
|
||||||
tools/
|
|
||||||
zephyr/
|
|
||||||
zmk/
|
zmk/
|
||||||
key: ${{ runner.os }} ${{ hashFiles('config/west.yml') }} ${{ matrix.merge }}
|
key: zmk ${{ hashFiles('config/west.yml') }} ${{ matrix.merge }}
|
||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Initialize west workspace
|
- name: West init
|
||||||
run: west init -l config
|
run: west init -l config
|
||||||
- name: Update west projects
|
- name: West update zmk
|
||||||
run: west update
|
run: west update zmk
|
||||||
- name: Merge branches and update
|
- name: Merge branches
|
||||||
if: ${{ steps.variables.outputs.merge != '' }}
|
if: ${{ steps.variables.outputs.merge != '' }}
|
||||||
run: |
|
run: |
|
||||||
cd zmk
|
cd zmk
|
||||||
@ -217,7 +213,26 @@ jobs:
|
|||||||
git remote remove "$remote"
|
git remote remove "$remote"
|
||||||
git status
|
git status
|
||||||
done
|
done
|
||||||
west update
|
cd ..
|
||||||
|
cp -a zmk zmk.merged
|
||||||
|
- name: Cache zephyr
|
||||||
|
if: true
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
modules/
|
||||||
|
tools/
|
||||||
|
zephyr/
|
||||||
|
key: zephyr ${{ runner.os }} ${{ hashFiles('zmk/app/west.yml') }}
|
||||||
|
timeout-minutes: 2
|
||||||
|
continue-on-error: true
|
||||||
|
- name: West update
|
||||||
|
run: west update
|
||||||
|
- name: Restore merge
|
||||||
|
if: ${{ steps.variables.outputs.merge != '' }}
|
||||||
|
run: |
|
||||||
|
mv zmk zmk.default
|
||||||
|
mv zmk.merged zmk
|
||||||
- name: Export Zephyr CMake package
|
- name: Export Zephyr CMake package
|
||||||
run: west zephyr-export
|
run: west zephyr-export
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user