forked from espressif/esptool
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,31 +72,11 @@ jobs: | |
with: | ||
name: ${{ env.DISTPATH }} | ||
path: ${{ env.DISTPATH }} | ||
- name: Build stub | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
export TOOLCHAIN_DIR=$HOME/toolchain | ||
export ESP8266_BINDIR=$TOOLCHAIN_DIR/xtensa-lx106-elf/bin | ||
export ESP32_BINDIR=$TOOLCHAIN_DIR/xtensa-esp32-elf/bin | ||
export ESP32S2_BINDIR=$TOOLCHAIN_DIR/xtensa-esp32s2-elf/bin | ||
export ESP32S3_BINDIR=$TOOLCHAIN_DIR/xtensa-esp32s3-elf/bin | ||
export ESP32C3_BINDIR=$TOOLCHAIN_DIR/riscv32-esp-elf/bin | ||
export PATH=$PATH:$ESP8266_BINDIR:$ESP32_BINDIR:$ESP32S2_BINDIR:$ESP32S3_BINDIR:$ESP32C3_BINDIR | ||
./ci/setup_ci_build_env.sh | ||
make -C flasher_stub V=1 | ||
rm /home/runner/work/esptool/esptool/flasher_stub/build/*.elf | ||
rm /home/runner/work/esptool/esptool/flasher_stub/build/*.map | ||
- name: Update package.json when a release tag is set | ||
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' | ||
run: | | ||
rm package.json | ||
python ci/gen_pio_manifest.py -o "./" -s ${{ github.ref_name }} | ||
- name: Upload stubs artifact | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: jason2866/[email protected] | ||
with: | ||
name: stubs | ||
path: /home/runner/work/esptool/esptool/flasher_stub/build | ||
- name: Upload package.json artifact | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: jason2866/[email protected] | ||
|
@@ -105,7 +85,7 @@ jobs: | |
path: /home/runner/work/esptool/esptool/package.json | ||
|
||
push_stubs: | ||
name: Commit changed files | ||
name: Commit changed package.json | ||
needs: build-esptool-binaries | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -117,14 +97,12 @@ jobs: | |
uses: jason2866/[email protected] | ||
with: | ||
name: | | ||
stubs | ||
manifest | ||
path: | | ||
./esptool/targets/stub_flasher | ||
./ | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: updated files | ||
commit_message: update manifest | ||
|
||
release: | ||
name: Upload release binaries | ||
|