Skip to content

requirements(deps-dev): bump black from 24.4.1 to 24.4.2 (#2206) #647

requirements(deps-dev): bump black from 24.4.1 to 24.4.2 (#2206)

requirements(deps-dev): bump black from 24.4.1 to 24.4.2 (#2206) #647

# Copyright (C) 2023 Sebastian Pipping <sebastian@pipping.org>
# Licensed under GPL v3 or later
name: Build for Windows
# Drop permissions to minimum for security
permissions:
contents: read
on:
pull_request:
push:
schedule:
- cron: '0 2 * * 5' # Every Friday at 2am
jobs:
checks:
name: Build for Windows
runs-on: windows-2022
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install build dependencies (MSYS)
uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # v2.22.0
with:
update: true
msystem: MINGW64
install: |
mingw-w64-x86_64-adwaita-icon-theme
mingw-w64-x86_64-gtk3
mingw-w64-x86_64-gtksourceview3
mingw-w64-x86_64-python
mingw-w64-x86_64-python-cairo
mingw-w64-x86_64-python-cx_Freeze
mingw-w64-x86_64-python-gobject
mingw-w64-x86_64-python-pexpect
mingw-w64-x86_64-python-psutil
mingw-w64-x86_64-python-sqlalchemy
mingw-w64-x86_64-python-pip
mingw-w64-x86_64-toolchain
- name: Install build dependencies (PyPI)
run: |
pip3 install websockets
- name: Install build dependencies (Stockfish)
uses: robinraju/release-downloader@c39a3b234af58f0cf85888573d361fb6fa281534 # v1.10
with:
repository: fairy-stockfish/Fairy-Stockfish
latest: true
fileName: fairy-stockfish_x86-64.exe
out-file-path: engines
- name: Build
run: |-
set -x
PYTHONPATH=lib python3 pgn2ecodb.py
PYTHONPATH=lib python3 create_theme_preview.py
python3 setup.py bdist_msi --help
python3 setup.py bdist_msi
- name: Store Windows binaries
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: pychess_win64_msi_${{ github.sha }}
path: dist/*.msi
if-no-files-found: error