Bump actions/upload-artifact from 3.1.2 to 3.1.3 #136
Workflow file for this run
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] | |
tags: ["*"] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [master] | |
schedule: | |
- cron: '43 16 * * 5' | |
jobs: | |
build-x64: | |
name: Build x86-64 | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
# https://github.com/actions/checkout | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
# https://github.com/actions/setup-python | |
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 | |
with: | |
cache: 'pip' | |
architecture: 'x64' | |
python-version: '3.*' | |
- name: Install dependencies | |
shell: cmd | |
run: pip install --upgrade -r requirements.txt | |
- name: Run tests | |
shell: cmd | |
run: pytest -v | |
- name: Build executable | |
shell: cmd | |
run: pyinstaller --onefile --distpath=. --workpath=build --version-file=events2dolphin.version events2dolphin.py | |
- name: Save executable as artifact | |
# https://github.com/actions/upload-artifact | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 | |
with: | |
name: events2dolphin.exe | |
path: events2dolphin.exe | |
if-no-files-found: error | |
build-x86: | |
name: Build x86 | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
# https://github.com/actions/checkout | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
# https://github.com/actions/setup-python | |
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 | |
with: | |
#cache: 'pip' | |
architecture: 'x86' | |
# Python 3.4 is the last for WinXP | |
# Pythin 3.8 is the last for Win7 | |
python-version: '3.8' | |
- name: Install dependencies | |
shell: cmd | |
run: | | |
pip install wheel | |
pip install --upgrade -r requirements-x86.txt | |
- name: Build executable | |
shell: cmd | |
run: pyinstaller --onefile --distpath=. --workpath=build --version-file=events2dolphin.version --name=events2dolphin-x86 events2dolphin.py | |
- name: Save executable as artifact | |
# https://github.com/actions/upload-artifact | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 | |
with: | |
name: events2dolphin-x86.exe | |
path: events2dolphin-x86.exe | |
if-no-files-found: error | |
release: | |
name: Publish release | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: [build-x86, build-x64] | |
runs-on: windows-latest | |
steps: | |
- name: Download x86 executable as artifact | |
# https://github.com/actions/download-artifact | |
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a | |
with: | |
name: events2dolphin-x86.exe | |
- name: Download x64 executable as artifact | |
# https://github.com/actions/download-artifact | |
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a | |
with: | |
name: events2dolphin.exe | |
- name: Publish release | |
if: startsWith(github.ref, 'refs/tags/v') | |
# https://github.com/softprops/action-gh-release | |
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 | |
with: | |
draft: true | |
files: | | |
events2dolphin-x86.exe | |
events2dolphin.exe |