fix bug' #113
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-All-Platforms | |
# Controls when the workflow will run | |
on: | |
push: | |
paths: | |
- PyEdit/** | |
- .github/workflows/** | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-11, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Check-out repository | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | |
cache: 'pip' | |
# Install dependencies | |
- name: Install Dependencies | |
run: | | |
pip install -r PyEdit/requirements.txt | |
pip install cx_Freeze | |
- if: matrix.os == 'macos-11' | |
run: | | |
curl https://files.pythonhosted.org/packages/a0/81/742b342fd642e672fbedecde725ba44db44e800dc4c936216c3c6729885a/tk-0.1.0.tar.gz > tk.tar.gz | |
tar -xzvf tk.tar.gz | |
cd tk-0.1.0 | |
python3 setup.py install | |
brew install tcl-tk | |
- name: Compile | |
run: | | |
cd PyEdit && cxfreeze -c main.py --target-dir dist --include-files=activeTheme.conf,darkTheme.csv,lightTheme.csv,langs.csv,textHighlightingDark,textHighlightingLight && mkdir build && mv dist build | |
# Uploads artifacts | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}_Build | |
path: | | |
PyEdit/build |