Compare commits
2 Commits
v1.9.6
..
456b4f0b9a
| Author | SHA1 | Date | |
|---|---|---|---|
| 456b4f0b9a | |||
| a338c9f65f |
@@ -20,6 +20,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Firmware
|
name: Build Firmware
|
||||||
|
needs: [cppcheck, flawfinder, gitleaks, shellcheck]
|
||||||
runs-on: anvil
|
runs-on: anvil
|
||||||
container:
|
container:
|
||||||
image: docker.io/espressif/idf:v5.3
|
image: docker.io/espressif/idf:v5.3
|
||||||
@@ -72,22 +73,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
git clone --depth=1 --branch=${{ github.ref_name }} \
|
mkdir -p workspace
|
||||||
https://oauth2:${{ github.token }}@git.mymx.me/${{ github.repository }}.git workspace
|
curl -sL -H "Authorization: token ${{ github.token }}" \
|
||||||
cd workspace
|
"https://git.mymx.me/api/v1/repos/${{ github.repository }}/archive/${{ github.ref_name }}.tar.gz" \
|
||||||
|
| tar -xz --strip-components=1 -C workspace
|
||||||
|
|
||||||
- name: Build firmware
|
- name: Build firmware
|
||||||
run: |
|
run: |
|
||||||
cd workspace
|
cd workspace && . $HOME/esp/esp-idf/export.sh && cd get-started/csi_recv_router && idf.py build
|
||||||
. $HOME/esp/esp-idf/export.sh
|
|
||||||
cd get-started/csi_recv_router
|
|
||||||
idf.py build
|
|
||||||
|
|
||||||
- name: Create release and upload firmware
|
- name: Create release and upload firmware
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ github.token }}
|
GITEA_TOKEN: ${{ github.token }}
|
||||||
|
working-directory: workspace
|
||||||
run: |
|
run: |
|
||||||
cd workspace
|
|
||||||
TAG="${{ github.ref_name }}"
|
TAG="${{ github.ref_name }}"
|
||||||
REPO="${{ github.repository }}"
|
REPO="${{ github.repository }}"
|
||||||
API_URL="https://git.mymx.me/api/v1"
|
API_URL="https://git.mymx.me/api/v1"
|
||||||
@@ -119,8 +118,8 @@ jobs:
|
|||||||
"$API_URL/repos/$REPO/releases/$RELEASE_ID/assets?name=csi_recv_router.bin"
|
"$API_URL/repos/$REPO/releases/$RELEASE_ID/assets?name=csi_recv_router.bin"
|
||||||
|
|
||||||
- name: Deploy via OTA
|
- name: Deploy via OTA
|
||||||
|
working-directory: workspace
|
||||||
run: |
|
run: |
|
||||||
cd workspace
|
|
||||||
SENSORS="muddy-storm:192.168.129.29 amber-maple:192.168.129.30 hollow-acorn:192.168.129.31"
|
SENSORS="muddy-storm:192.168.129.29 amber-maple:192.168.129.30 hollow-acorn:192.168.129.31"
|
||||||
OTA_PORT=8899
|
OTA_PORT=8899
|
||||||
EXPECTED_VERSION="${{ github.ref_name }}"
|
EXPECTED_VERSION="${{ github.ref_name }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user