From 97119f2b2645631a14ca9c9592f2b10d127c3322 Mon Sep 17 00:00:00 2001 From: Jorge <126930965+MrBocch@users.noreply.github.com> Date: Fri, 29 Dec 2023 15:54:01 -0600 Subject: [PATCH] trying out github actions --- .github/workflows/main.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8dbc654 --- /dev/null +++ b/.github/workflows/main.yml @@ -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