From 64b345e634c361ecf485e2368bc4352006681f53 Mon Sep 17 00:00:00 2001 From: Dhruva Gole Date: Tue, 6 Aug 2024 19:38:55 +0530 Subject: [PATCH] test with all build flow, env new clear space Signed-off-by: Dhruva Gole --- .github/workflows/build.yml | 70 +++++++++++-------------------------- 1 file changed, 20 insertions(+), 50 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6497b493..933ea79d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,57 +3,38 @@ name: Build on: [push, pull_request] jobs: - free-disk-space: - runs-on: ubuntu-latest - steps: - - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: true - swap-storage: true - build: + name: Build my artifact runs-on: ubuntu-latest - container: zephyrprojectrtos/ci:latest - env: - CMAKE_PREFIX_PATH: /opt/toolchains steps: + - name: Maximize build space + uses: AdityaGarg8/remove-unwanted-software@v4.1 + with: + remove-android: 'true' + - name: Build + run: | + echo "Free space:" + df -h - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main - with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB - tool-cache: false - - # all of these default to true, but feel free to set to - # "false" if necessary for your workflow - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: true - swap-storage: true + - name: test + uses: addnab/docker-run-action@v3 + with: + image: zephyrprojectrtos/ci:latest + run: | + echo Docker setup done + df -h + export CMAKE_PREFIX_PATH=/opt/toolchains - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: Arduino-Zephyr-API - name: Initialize working-directory: Arduino-Zephyr-API run: | + uname -a + df -h west init -m https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core.git west update git clone https://github.com/arduino/ArduinoCore-API.git ArduinoCore-API @@ -63,14 +44,3 @@ jobs: working-directory: Arduino-Zephyr-API run: | west build -p -b arduino_nano_33_ble_sense samples/fade - - - name: Build i2cdemo - working-directory: Arduino-Zephyr-API - run: | - west build -p -b arduino_nano_33_ble_sense samples/i2cdemo - - - name: Build adc - working-directory: Arduino-Zephyr-API - run: | - west build -p -b beagleconnect_freedom samples/analog_input -