mirror of
https://github.com/esphome/esphome-flasher.git
synced 2025-03-12 13:39:54 +01:00
Add github actions
This commit is contained in:
parent
c3541a9ba0
commit
887153a995
77
.github/workflows/build.yml
vendored
Normal file
77
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
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: Install requirements
|
||||
run: |
|
||||
pip3 install -r requirements_build.txt
|
||||
pip3 install -e .
|
||||
- name: Run PyInstaller
|
||||
run: |
|
||||
python3 -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
|
||||
|
||||
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'
|
||||
architecture: 'x64'
|
||||
- name: Install requirements
|
||||
run: |
|
||||
pip3 install -r requirements_build.txt
|
||||
pip3 install -e .
|
||||
- name: Run PyInstaller
|
||||
run: |
|
||||
python3 -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'
|
||||
architecture: 'x64'
|
||||
- name: Install requirements
|
||||
run: |
|
||||
pip3 install -r requirements_build.txt
|
||||
pip3 install -e .
|
||||
- name: Run PyInstaller
|
||||
run: |
|
||||
python3 -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
|
4
requirements_build.txt
Normal file
4
requirements_build.txt
Normal file
@ -0,0 +1,4 @@
|
||||
wxpython>=4.0,<5.0
|
||||
esptool==2.8
|
||||
requests>=2.0,<3
|
||||
pyinstaller
|
Loading…
Reference in New Issue
Block a user