Skip to content

Commit

Permalink
trying out github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBocch authored Dec 29, 2023
1 parent 34698af commit 97119f2
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Python Build

on:
push:
branches: master

jobs:
build-linux:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build for Linux
run: pyinstaller main.py --onefile --windowed


build-windows:
runs-on: windows-latest

steps:
- name: Checkout code
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 for Windows
run: pyinstaller main.py --onefile --windowed

0 comments on commit 97119f2

Please sign in to comment.