From b3a43a861caef67572a377212b9344d41b980ac3 Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Mon, 6 Nov 2023 16:23:26 +0000 Subject: [PATCH 1/2] Add build workflow --- .github/workflows/build.yml | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 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..356ff53 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,70 @@ +name: CI + +on: + pull_request: + branches: + - master + paths-ignore: + - hardware/** + push: + branches: + - master + paths-ignore: + - hardware/** + +jobs: + build: + name: Run Tests + # runs-on: "${{ matrix.os }}" + runs-on: "ubuntu-latest" + strategy: + fail-fast: true + # matrix: + # os: ["ubuntu-latest", "windows-latest", "macos-latest"] + # python-version: ["3.7", "3.8", "3.9"] + + steps: + + - name: Check out the commit + uses: actions/checkout@v3 + + - name: Cache pip + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Cache PlatformIO + uses: actions/cache@v3 + with: + path: ~/.platformio + key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} + + - name: Select Python 3.7 + uses: actions/setup-python@v3 + with: + # python-version: ${{ matrix.python-version }} + python-version: "3.8" + + - name: Install PlatformIO + run: | + pip install -U -r tools/requirements.txt + pio upgrade --dev + pio pkg update --global + + - name: Run Builds + run: | + python make.py build sam esp -v + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') && job.status == 'success' && github.ref == 'refs/heads/master' + with: + files: | + bin/* + + + + From 99a153e9f6033f035213693f026c0998cfd153f7 Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Mon, 6 Nov 2023 16:57:30 +0000 Subject: [PATCH 2/2] Add submodules --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 356ff53..404a417 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,8 @@ jobs: - name: Check out the commit uses: actions/checkout@v3 + with: + submodules: 'true' - name: Cache pip uses: actions/cache@v3