Fix nightly build

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-09-25 11:20:43 +02:00
parent cbef14beec
commit 7bc4a70319
2 changed files with 5 additions and 6 deletions

View File

@@ -1,11 +1,6 @@
name: "Nightly deploy"
on:
push:
branches: [ "main", "development" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "development" ]
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
@@ -25,6 +20,8 @@ jobs:
ref: ${{ matrix.refs }}
submodules: 'recursive'
- name : Build
env:
PICO_SDK_PATH: ../pico-sdk
run: |
./workflows/autobuild.sh
./build_pico_fido.sh

View File

@@ -4,6 +4,8 @@ VERSION_MAJOR="5"
VERSION_MINOR="12"
rm -rf release/*
mkdir -p build_release
mkdir -p release
cd build_release
for board in 0xcb_helios \
@@ -96,7 +98,7 @@ for board in 0xcb_helios \
wiznet_w5100s_evb_pico
do
rm -rf *
PICO_SDK_PATH=../../pico-sdk cmake .. -DPICO_BOARD=$board
PICO_SDK_PATH="${PICO_SDK_PATH:-../../pico-sdk}" cmake .. -DPICO_BOARD=$board
make -kj20
mv pico_fido.uf2 ../release/pico_fido_$board-$VERSION_MAJOR.$VERSION_MINOR.uf2