Fix Linux & Macos builds + update dependencies #243
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: Backend Build Verify | |
on: [pull_request] | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10.11" | |
- name: Verify build | |
run: | | |
cd backend | |
python -m pip install --upgrade pip setuptools wheel virtualenv | |
virtualenv venv | |
venv/Scripts/activate.ps1 | |
pip install -r requirements.txt | |
python compile.py build | |
- name: Check Output | |
run: | | |
cd backend | |
if (-Not (Test-Path ./build/Stellaru.exe -PathType Leaf)) { exit 1 } | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10.11" | |
- name: Verify build | |
run: | | |
cd backend | |
python -m pip install --upgrade pip setuptools wheel virtualenv | |
virtualenv venv | |
source venv/bin/activate | |
pip install -r requirements.txt | |
python compile.py build | |
- name: Check Output | |
run: | | |
cd backend | |
test -f "./build/Stellaru" || exit 1 | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10.11" | |
- name: Verify build | |
run: | | |
cd backend | |
python -m pip install --upgrade pip setuptools wheel virtualenv | |
virtualenv venv | |
source venv/bin/activate | |
pip install -r requirements.txt | |
python compile.py build | |
- name: Check Output | |
run: | | |
cd backend | |
test -f "./build/Stellaru" || exit 1 |