Skip to content

Add GitHub actions, compiling CoilSnake for Windows on pushes and PRs… #2

Add GitHub actions, compiling CoilSnake for Windows on pushes and PRs…

Add GitHub actions, compiling CoilSnake for Windows on pushes and PRs… #2

Workflow file for this run

name: Build CoilSnake with Win32 Py3.8
on:
push: # by vote, we'll only build on pushes to master
branches: [ master ]
pull_request: # build on pull request against any branch
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
cache: 'pip' # caching pip dependencies
architecture: 'x86'
- name: Install requirements
run: pip install -r requirements.txt
- name: Write build Git commit info
run: python set_git_commit.py --write
- name: Build CoilSnake
run: python setup.py install
- name: Build .exe
run: python setup_exe.py
- name: Rename .exe
run: python rename_exe_with_version.py
- name: Upload .exe
uses: actions/upload-artifact@v4
with:
name: CoilSnake (Py3.8-win32)
path: dist/CoilSnake*.exe