actions tets 2 #2
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
name: Build | |
on: | |
push: | |
branches: master | |
jobs: | |
build-exe: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install redwrench | |
shell: bash -l {0} | |
run: | | |
pip3 install . | |
- name: install PyInstaller | |
shell: bash -l {0} | |
run: | | |
pip3 install pyinstaller==5.9.0 | |
- name: Build Pyinstaller .exe (macOS and Linux) | |
if: matrix.os != 'windows-latest' | |
shell: bash -l {0} | |
run: | | |
pyinstaller -n redwrench --onefile --windowed app.py | |
- name: Build Pyinstaller .exe (Windows) | |
if: matrix.os == 'windows-latest' | |
shell: bash -l {0} | |
run: | | |
pyinstaller -n redwrench --onefile app.py | |
- uses: vimtor/action-zip@v1 | |
with: | |
files: dist/ | |
recursive: false | |
dest: ${{ matrix.os }}-${{github.ref_name}}.zip | |
- uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ matrix.os }}-${{github.ref_name}}.zip |