From 11f960838ab5cb8f0c7676228c3567df7ad350f8 Mon Sep 17 00:00:00 2001 From: jocover Date: Fri, 19 Jan 2024 11:43:02 +0800 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..549a17f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: CI +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + targets: [esp32s2, esp32s3] + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: ESP-IDF Build + uses: espressif/esp-idf-ci-action@v1 + with: + esp_idf_version: v5.1.2 + target: ${{ matrix.targets }} + - name: Package binaries + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.targets }}_binaries + path: | + build/esp32_u2f.bin + build/partition_table/partition-table.bin + build/bootloader/bootloader.bin