kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
Update main.yml
rodzic
baafbe6dca
commit
6dc442c030
|
@ -9,26 +9,27 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pyinstaller
|
||||
- name: Install PyOxidizer
|
||||
run: |
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
pip install pyoxidizer
|
||||
|
||||
- name: Build executable
|
||||
run: pyinstaller --name=myapp --onefile --windowed main.py
|
||||
- name: Build Windows Executable
|
||||
run: pyoxidizer build
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: myapp
|
||||
path: dist/myapp.exe
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: myapp-windows
|
||||
path: build/target/x86_64-pc-windows-msvc/release/myapp.exe
|
||||
|
|
Ładowanie…
Reference in New Issue