Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KLPig authored Apr 13, 2024
1 parent 137f05f commit c2e41c8
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Python Installer
on:
workflow_call:
inputs:
file-path:
description: 'The path of the main file'
default: 'main.py'
required: true
type: string

jobs:
env-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
pv: [python, python3]
name: Testing Enviroments
runs-on: '${{ matrix.os }}'
steps:
- name: 'Testing terminal on ${{ matrix.os }}'
run: echo Hello, world!
- name: 'Testing ${{ matrix.pv }} on ${{ matrix.os }}'
run: '${{ matrix.pv }} -v'
- name: 'Testing pip using ${{ matrix.pv }} on ${{ matrix.os }}'
run: '${{ matrix.pv }} -m pip -v'
env-builds:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
pv: [python, python3]
name: Building Enviroments and output
needs: env-test
runs-on: '${{ matrix.os }}'
steps:
- name: 'Upgrading pip on ${{ matrix.pv }} in ${{ matrix.os }}'
run: '${{ matrix.pv }} -m pip install --upgrade pip'
- name: 'Installing pyinstaller on ${{ matrix.os }}'
run: |
'${{ matrix.pv }} -m pip install pyinstaller'
'${{ matrix.pv }} -m pyinstaller'
- name: 'Packaging by pyinstaller'
run: |
'${{ matrix.pv }} -m pyinstaller -D -n app-${{ matrix.os }} - ${{ matrix.pv }} ${{ inputs.file-path }}'

0 comments on commit c2e41c8

Please sign in to comment.