Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes from upstream #33

Merged
merged 50 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
c293469
Tasmota changes
Jason2866 Feb 24, 2024
a32c848
Merge branch 'espressif:master' into main_work
Jason2866 Mar 1, 2024
92cbc17
Merge branch 'espressif:master' into main_work
Jason2866 Mar 6, 2024
c02c84b
v4.7.1
Jason2866 Mar 6, 2024
504ea59
Update package.json
Jason2866 Mar 6, 2024
82f84e1
Update .cz.toml
Jason2866 Mar 6, 2024
c899e6b
Merge branch 'espressif:master' into main_work
Jason2866 Mar 13, 2024
27a75b9
s3 reset fix: align with upstream
Jason2866 Mar 14, 2024
349d7a1
Merge branch 'espressif:master' into main_work
Jason2866 Mar 14, 2024
e9801eb
Merge branch 'espressif:master' into main_work
Jason2866 Mar 14, 2024
2937305
Merge branch 'espressif:master' into main_work
Jason2866 Mar 15, 2024
6a754f8
Merge branch 'espressif:master' into main_work
Jason2866 Mar 18, 2024
94ae14a
Auto update version with GH release action
Jason2866 Mar 18, 2024
01c8da2
patch only in release case
Jason2866 Mar 18, 2024
41844c7
Fix if compare
Jason2866 Mar 18, 2024
2d5b745
Update and rename patch_dev_release.py to patch_release.py
Jason2866 Mar 18, 2024
85c6f23
Update build_esptool.yml
Jason2866 Mar 18, 2024
b438652
Create patch_dev_release.py
Jason2866 Mar 18, 2024
e57244e
Update patch_release.py
Jason2866 Mar 18, 2024
984f35c
Create pack_python.py
Jason2866 Mar 18, 2024
f8c2b2d
add esptool zip to release
Jason2866 Mar 18, 2024
3aa72f4
Fix path
Jason2866 Mar 18, 2024
e2eba30
Update build_esptool.yml
Jason2866 Mar 18, 2024
aa9f0d0
Update build_esptool.yml
Jason2866 Mar 18, 2024
726111d
comment for test
Jason2866 Mar 18, 2024
2bf6c12
Update build_esptool.yml
Jason2866 Mar 18, 2024
6ce909b
Update pack_python.py
Jason2866 Mar 18, 2024
be630ef
Create gen_pio_manifest.py
Jason2866 Mar 18, 2024
ea21347
generate package.json
Jason2866 Mar 18, 2024
6a6822d
Update package.json in repo when a release is done
Jason2866 Mar 18, 2024
6857825
Update build_esptool.yml
Jason2866 Mar 18, 2024
195ba03
Update build_esptool.yml
Jason2866 Mar 18, 2024
e5a1d74
Update build_esptool.yml
Jason2866 Mar 18, 2024
3b110b1
simplify
Jason2866 Mar 18, 2024
c41aa41
Update build_esptool.yml
Jason2866 Mar 18, 2024
f595bf4
rm elf map
Jason2866 Mar 18, 2024
2feb954
updated files
Jason2866 Mar 18, 2024
0269549
Update build_esptool.yml
Jason2866 Mar 18, 2024
8097834
rm hash
Jason2866 Mar 20, 2024
1e91d5d
rm sha
Jason2866 Mar 20, 2024
c4e5143
forgot rm hash
Jason2866 Mar 20, 2024
b52e7ca
updated files
Jason2866 Mar 20, 2024
6add839
Update build_esptool.yml
Jason2866 Mar 20, 2024
17d42c9
set as release
Jason2866 Mar 20, 2024
137d236
Merge branch 'espressif:master' into main_work
Jason2866 Mar 22, 2024
2ee319a
Merge branch 'espressif:master' into main_work
Jason2866 Apr 2, 2024
5261d75
Merge branch 'espressif:master' into main_work
Jason2866 Apr 7, 2024
b103dcc
Merge branch 'espressif:master' into main_work
Jason2866 Apr 23, 2024
7f9b1ec
Merge branch 'espressif:master' into main_work
Jason2866 May 3, 2024
306a330
Merge branch 'main_merge' into main_new
Jason2866 May 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cz.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.commitizen]
version = "4.7.0"
version = "4.7.1"
update_changelog_on_bump = true
tag_format = "v$version"
changelog_start_rev = "v4.2.1"
Expand All @@ -21,4 +21,4 @@ change_type_order = [
feat = "New Features"
fix = "Bug Fixes"
refactor = "Code Refactoring"
perf = "Performance Improvements"
perf = "Performance Improvements"
190 changes: 110 additions & 80 deletions .github/workflows/build_esptool.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
name: Build esptool

on: [push, pull_request]
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
paths-ignore:
- '.github/**' # Ignore changes towards the .github directory

jobs:
build-esptool-binaries:
name: Build esptool binaries for ${{ matrix.platform }}
runs-on: ${{ matrix.RUN_ON }}
name: Build esptool binaries for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
platform: [macos, windows, linux-amd64, linux-arm32, linux-arm64]
os: [macos-14, macos-latest, ubuntu-latest, windows-latest]
include:
- platform: macos
- os: macos-14
TARGET: macos-arm
SEPARATOR: ':'
- os: macos-latest
TARGET: macos
SEPARATOR: ':'
RUN_ON: macos-latest
- platform: windows
- os: ubuntu-latest
TARGET: linux-amd64
SEPARATOR: ':'
- os: windows-latest
TARGET: win64
EXTEN: .exe
SEPARATOR: ';'
RUN_ON: windows-latest
- platform: linux-amd64
TARGET: linux-amd64
SEPARATOR: ':'
RUN_ON: ubuntu-20.04
- platform: linux-arm32
CONTAINER: python:3.8-bullseye
TARGET: linux-arm32
SEPARATOR: ':'
RUN_ON: [ARM, self-hosted, linux]
- platform: linux-arm64
CONTAINER: python:3.8-bullseye
TARGET: linux-arm64
SEPARATOR: ':'
RUN_ON: [ARM64, self-hosted, linux]
container: ${{ matrix.CONTAINER }} # use python container on ARM
env:
DISTPATH: esptool-${{ matrix.TARGET }}
STUBS_DIR: ./esptool/targets/stub_flasher/
EFUSE_DIR: ./espefuse/efuse_defs/
PIP_EXTRA_INDEX_URL: "https://dl.espressif.com/pypi"
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Set up Python 3.8
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108
if: matrix.platform != 'linux-arm32' && matrix.platform != 'linux-arm64'
uses: actions/setup-python@master
uses: actions/checkout@v4
with:
ref: main_work
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.11
- name: Update esptool version when releasing
if: startsWith(github.ref, 'refs/tags/')
run: |
python ci/patch_release.py --version ${{ github.ref_name }} esptool/__init__.py
#git diff
- name: Install dependencies
# PyInstaller >=6.0 results in significantly more antivirus false positives
run: |
Expand All @@ -60,72 +60,102 @@ jobs:
pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico --add-data="${{ env.EFUSE_DIR }}*.yaml${{ matrix.SEPARATOR }}${{ env.EFUSE_DIR }}" espefuse.py
pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico espsecure.py
pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico esp_rfc2217_server.py
- name: Sign binaries
if: matrix.platform == 'windows' && github.event_name != 'pull_request'
env:
CERTIFICATE: ${{ secrets.CERTIFICATE }}
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
shell: pwsh
run: |
./ci/Sign-File.ps1 -Path ./${{ env.DISTPATH }}/esptool.exe
./ci/Sign-File.ps1 -Path ./${{ env.DISTPATH }}/espefuse.exe
./ci/Sign-File.ps1 -Path ./${{ env.DISTPATH }}/espsecure.exe
./ci/Sign-File.ps1 -Path ./${{ env.DISTPATH }}/esp_rfc2217_server.exe
- name: Test binaries
shell: bash
run: |
./${{ env.DISTPATH }}/esptool${{ matrix.EXTEN }} -h
./${{ env.DISTPATH }}/espefuse${{ matrix.EXTEN }} -h
./${{ env.DISTPATH }}/espsecure${{ matrix.EXTEN }} -h
./${{ env.DISTPATH }}/esp_rfc2217_server${{ matrix.EXTEN }} -h
- name: Add license and readme
shell: bash
run: mv LICENSE README.md ./${{ env.DISTPATH }}
- name: Archive artifact
uses: actions/upload-artifact@master
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]
with:
name: manifest
path: /home/runner/work/esptool/esptool/package.json

create_release:
name: Create GitHub release
if: startsWith(github.ref, 'refs/tags/') && !(contains(github.ref_name, 'dev'))
push_stubs:
name: Commit changed files
needs: build-esptool-binaries
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Get version
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
shell: bash
- name: Checkout
uses: actions/checkout@master
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --user -e ".[dev]"
- name: Generate changelog
run: |
cz changelog ${{ steps.get_version.outputs.VERSION }} --template ci/gh_changelog_template.md.j2 --file-name changelog_body.md
cat changelog_body.md
- name: Download built binaries
uses: actions/download-artifact@master
- name: Compress and rename binaries
run: |
for dir in esptool-*; do
zip -r "esptool-v${{ steps.get_version.outputs.VERSION }}-${dir#esptool-}.zip" "$dir"
done
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ref: main_work
- name: Download artifacts
uses: jason2866/[email protected]
with:
name: |
stubs
manifest
path: |
./esptool/targets/stub_flasher
./
- uses: stefanzweifel/git-auto-commit-action@v5
with:
body_path: changelog_body.md
name: Version ${{ steps.get_version.outputs.VERSION }}
draft: true
prerelease: false
files: esptool-v${{ steps.get_version.outputs.VERSION }}-*.zip
commit_message: updated files

release:
name: Upload release binaries
needs: build-esptool-binaries
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main_work
- name: Zip esptool.py
run: |
echo "Packaging new esptool release: ${{ github.ref_name }}"
python ci/patch_release.py --version ${{ github.ref_name }} esptool/__init__.py
rm package.json
python ci/gen_pio_manifest.py -o "./" -s ${{ github.ref_name }}
python ci/pack_python.py
- name: Download built binaries
uses: actions/download-artifact@master
- name: Rename and package binaries
run: |
zip -r esptool-macos-arm.zip ./esptool-macos-arm
zip -r esptool-macos.zip ./esptool-macos
zip -r esptool-linux-amd64.zip ./esptool-linux-amd64
zip -r esptool-win64.zip ./esptool-win64
- name: Release
uses: jason2866/[email protected]
with:
prerelease: false
files: |
*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 0 additions & 25 deletions .github/workflows/dangerjs.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/dev_release_esptool_pypi.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/issue_comment.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/new_issues.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/new_prs.yml

This file was deleted.

Loading