mirror of
https://github.com/esphome/esphome-flasher.git
synced 2025-01-07 19:28:49 +01:00
342d6895a1
* Add github actions * Updates * Try fix * Try fix 2 * Try fix 3 * Windows x86, ubuntu fix * Disable ubuntu Builds keep failing, looks like a bug in github actions ubuntu image/azure * Fix esptool 2.8 * Faster upload (4x) * Change baud rate for logs
119 lines
3.3 KiB
YAML
119 lines
3.3 KiB
YAML
name: Build Workflow
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Install Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.7'
|
|
architecture: 'x64'
|
|
- name: Print Versions
|
|
run: |
|
|
python --version
|
|
pip --version
|
|
- name: Install requirements
|
|
run: |
|
|
pip install -r requirements_build.txt
|
|
pip install -e .
|
|
- name: Run PyInstaller
|
|
run: |
|
|
python -m PyInstaller.__main__ -F -w -n ESPHome-Flasher -i icon.ico esphomeflasher\__main__.py
|
|
- name: See dist directory
|
|
run: ls dist
|
|
- uses: actions/upload-artifact@master
|
|
with:
|
|
name: Windows
|
|
path: dist/ESPHome-Flasher.exe
|
|
build-windows-x86:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Install Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.7'
|
|
architecture: 'x86'
|
|
- name: Print Versions
|
|
run: |
|
|
python --version
|
|
pip --version
|
|
- name: Install requirements
|
|
run: |
|
|
pip install -r requirements_build.txt
|
|
pip install -e .
|
|
- name: Run PyInstaller
|
|
run: |
|
|
python -m PyInstaller.__main__ -F -w -n ESPHome-Flasher -i icon.ico esphomeflasher\__main__.py
|
|
- name: See dist directory
|
|
run: ls dist
|
|
- uses: actions/upload-artifact@master
|
|
with:
|
|
name: Windows-x86
|
|
path: dist/ESPHome-Flasher.exe
|
|
|
|
#build-ubuntu:
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - name: Checkout
|
|
# uses: actions/checkout@v1
|
|
# - name: Install Python
|
|
# uses: actions/setup-python@v1
|
|
# with:
|
|
# python-version: '3.7'
|
|
# - name: Install dependencies
|
|
# run: |
|
|
# sudo apt install python-wxgtk3.0 build-essential libgtk-3-dev
|
|
# - name: Print Versions
|
|
# run: |
|
|
# python --version
|
|
# pip --version
|
|
# - name: Install requirements
|
|
# run: |
|
|
# pip install pathlib2
|
|
# pip install -r requirements_build.txt
|
|
# pip install -e .
|
|
# - name: Run PyInstaller
|
|
# run: |
|
|
# python -m PyInstaller.__main__ -F -w -n ESPHome-Flasher -i icon.ico esphomeflasher/__main__.py
|
|
# - name: See dist directory
|
|
# run: ls dist
|
|
# - uses: actions/upload-artifact@master
|
|
# with:
|
|
# name: Ubuntu
|
|
# path: dist
|
|
|
|
|
|
build-macos:
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Install Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.7'
|
|
- name: Print Versions
|
|
run: |
|
|
python --version
|
|
pip --version
|
|
- name: Install requirements
|
|
run: |
|
|
pip install -r requirements_build.txt
|
|
pip install -e .
|
|
- name: Run PyInstaller
|
|
run: |
|
|
python -m PyInstaller.__main__ -F -w -n ESPHome-Flasher -i icon.icns esphomeflasher/__main__.py
|
|
- name: See dist directory
|
|
run: ls dist
|
|
- uses: actions/upload-artifact@master
|
|
with:
|
|
name: MacOS
|
|
path: dist/ESPHome-Flasher.app
|