From eb19b044f978394eb304346133fa6e8a315a555d Mon Sep 17 00:00:00 2001 From: Oliver Walter Date: Fri, 9 Feb 2024 02:17:10 +0100 Subject: [PATCH] added gitea workflow for release builds --- .gitea/workflows/build.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..46246f3 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,33 @@ +name: C Release thumbv7em-none-eabihf +run-name: Build-Release +on: [push] + +jobs: + Build-Release: + runs-on: ubuntu-latest + steps: + + - name: Install dependencies + run: apt-get update && apt-get install -y gcc-arm-none-eabi binutils-arm-none-eabi ninja-build cmake + + - name: Check out repository code + uses: actions/checkout@v4 + with: + submodules: true + + - name: Create Build directory + run: mkdir build + + - name: Run CMake + run: cmake --preset Release -B build -S . + + - name: Build + run: cmake --build build + + - name: Archive production artifacts + uses: actions/upload-artifact@v3 + with: + name: firmware + path: | + build/*.hex + build/*.bin \ No newline at end of file