mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-31 11:56:14 +03:00
fix cache-keys
This commit is contained in:
29
.github/workflows/build.yaml
vendored
29
.github/workflows/build.yaml
vendored
@@ -170,9 +170,8 @@ jobs:
|
|||||||
- name: Store generated files in cache
|
- name: Store generated files in cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: dist
|
||||||
./dist
|
key: ${{ github.run_number }}-pack-for-OTA-v2
|
||||||
key: ${{ steps.vars.outputs.branch }}-pack-for-OTA-v2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -225,8 +224,7 @@ jobs:
|
|||||||
- name: Store generated files in cache
|
- name: Store generated files in cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: firmware
|
||||||
./firmware
|
|
||||||
key: ${{ github.run_number }}-pack-for-fresh-install
|
key: ${{ github.run_number }}-pack-for-fresh-install
|
||||||
|
|
||||||
|
|
||||||
@@ -242,6 +240,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set Variables
|
||||||
|
id: vars
|
||||||
|
run: |
|
||||||
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get generated files from cache
|
- name: Get generated files from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@@ -257,28 +259,25 @@ jobs:
|
|||||||
- name: Get generated files from cache
|
- name: Get generated files from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: dist
|
||||||
./dist
|
key: ${{ github.run_number }}-pack-for-OTA-v2
|
||||||
key: ${{ steps.vars.outputs.branch }}-pack-for-OTA-v2
|
|
||||||
|
|
||||||
# import cached artifacts from pack-for-fresh-install
|
# import cached artifacts from pack-for-fresh-install
|
||||||
- name: Get generated files from cache
|
- name: Get generated files from cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: firmware
|
||||||
./firmware
|
key: ${{ github.run_number }}-pack-for-fresh-install
|
||||||
key: ${{ steps.vars.outputs.branch }}-pack-for-fresh-install
|
|
||||||
|
|
||||||
- name: Set Variables
|
|
||||||
id: vars
|
|
||||||
run: |
|
|
||||||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
|
|
||||||
- name: Prepare artifacts for release
|
- name: Prepare artifacts for release
|
||||||
run: |
|
run: |
|
||||||
mkdir -p release
|
mkdir -p release
|
||||||
|
mkdir -p dist
|
||||||
# create a update.zip like "update__rolling"
|
# create a update.zip like "update__rolling"
|
||||||
|
pwd
|
||||||
|
ls ./dist
|
||||||
cd ./dist
|
cd ./dist
|
||||||
zip -r ../release/update.zip .
|
zip -r ../release/update.zip .
|
||||||
cd ../firmware
|
cd ../firmware
|
||||||
|
|||||||
Reference in New Issue
Block a user