From c4b026b5a9c57c890beebc75d1ff936302130b06 Mon Sep 17 00:00:00 2001 From: George Norton <30636555+george-norton@users.noreply.github.com> Date: Wed, 14 Jun 2023 23:58:12 +0100 Subject: [PATCH] Try to create a build workflow --- .github/workflows/cmake.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..a0d4b9b --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,31 @@ +name: publish +on: workflow_dispatch + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: install dependencies + run: | + sudo apt-get update + sudo apt-get install -y cmake gcc-arm-none-eabi git python3 g++ + + - name: Build + run: | + mkdir ${{github.workspace}}/build + cd ${{github.workspace}}/build + PICO_SDK_FETCH_FROM_GIT=1 PICO_EXTRAS_FETCH_FROM_GIT=1 cmake ${{github.workspace}}/firmware/code + make -j `nproc` + + - name: Release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: | + build/ploopy_headphones.*