added build directory creation process
This commit is contained in:
parent
8dfcce32b1
commit
d7bec6c973
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -30,6 +30,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Build Arduino examples
|
- name: Build Arduino examples
|
||||||
run: |
|
run: |
|
||||||
|
mkdir -p build
|
||||||
pushd build
|
pushd build
|
||||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
|
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
|
||||||
popd
|
popd
|
||||||
@ -41,11 +42,12 @@ jobs:
|
|||||||
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
|
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
|
||||||
- name: Build rp2040 examples
|
- name: Build rp2040 examples
|
||||||
run: |
|
run: |
|
||||||
cd examples/rp2040
|
pushd examples/rp2040
|
||||||
git clone --depth=1 https://github.com/raspberrypi/pico-sdk.git
|
git clone --depth=1 https://github.com/raspberrypi/pico-sdk.git
|
||||||
export PICO_SDK_PATH=$PWD/pico-sdk
|
export PICO_SDK_PATH=$PWD/pico-sdk
|
||||||
cmake -S . -B build -DPICO_SDK_PATH=$PWD/pico-sdk
|
cmake -S . -B build -DPICO_SDK_PATH=$PWD/pico-sdk
|
||||||
cmake --build build --config Debug
|
cmake --build build --config Debug
|
||||||
|
popd
|
||||||
Test:
|
Test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: Build # run after Build job
|
needs: Build # run after Build job
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user