Builds run unnecessarily
Closed this issue · 0 comments
eccentricOrange commented
npbc/.github/workflows/test-build-release.yml
Lines 21 to 115 in 518364d
# build executable for linux | |
build-linux: | |
name: build for linux | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
# setup | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- run: | | |
pip install pyinstaller | |
mkdir bin | |
mkdir build | |
# build | |
- run: | | |
pyinstaller --distpath bin --clean --onefile --name npbc_updater-linux-x64 npbc_updater.py | |
pip install -r requirements.txt | |
pyinstaller --distpath bin --clean --add-data "data/schema.sql:." --onefile --name npbc_cli-linux-x64 npbc_cli.py | |
# upload artifacts | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: bin | |
name: npbc_cli-linux-x64 | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: bin | |
name: npbc_updater-linux-x64 | |
# build executable for windows | |
build-windows: | |
name: build for windows | |
runs-on: windows-latest | |
needs: test | |
steps: | |
# setup | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- run: | | |
pip install pyinstaller | |
mkdir bin | |
mkdir build | |
# build | |
- run: | | |
pyinstaller --distpath bin --clean --onefile --name npbc_updater-windows-x64 npbc_updater.py | |
pip install -r requirements.txt | |
pyinstaller --distpath bin --clean --add-data "data/schema.sql;." --onefile --name npbc_cli-windows-x64 npbc_cli.py | |
# upload artifacts | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: bin | |
name: npbc_cli-windows-x64 | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: bin | |
name: npbc_updater-windows-x64 | |
# build executable for macos | |
build-macos: | |
name: build for macos | |
runs-on: macos-latest | |
needs: test | |
steps: | |
# setup | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- run: | | |
pip install pyinstaller | |
mkdir bin | |
mkdir build | |
# build | |
- run: | | |
pyinstaller --distpath bin --clean --onefile --name npbc_updater-macos-x64 npbc_updater.py | |
pip install -r requirements.txt | |
pyinstaller --distpath bin --clean --add-data "data/schema.sql:." --onefile --name npbc_cli-macos-x64 npbc_cli.py | |
# upload artifacts | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: bin | |
name: npbc_cli-macos-x64 | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: bin | |
name: npbc_updater-macos-x64 |