Skip to content

Commit

Permalink
chore: Add GitHub Actions workflow for test build
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubAndrysek committed Jul 27, 2024
1 parent 9ed4d3b commit fe847b5
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build with PyInstaller
run: |
cd forester-game-app
pyinstaller pyinstaller.spec
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Forester-Windows
path: forester-game-app/dist/Forester.exe

build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build with PyInstaller
run: |
cd forester-game-app
pyinstaller pyinstaller.spec
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Forester-macOS
path: forester-game-app/dist/Forester

0 comments on commit fe847b5

Please sign in to comment.