|
| 1 | +name: pyinstaller |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ master ] |
| 6 | + |
| 7 | +jobs: |
| 8 | + |
| 9 | + build_linux: |
| 10 | + runs-on: ubuntu-20.04 |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v2 |
| 13 | + - name: Set up Python |
| 14 | + uses: actions/setup-python@v2 |
| 15 | + with: |
| 16 | + python-version: '3.9' |
| 17 | + - name: Install dependencies |
| 18 | + run: | |
| 19 | + python -m pip install --upgrade pip |
| 20 | + python -m pip install pyinstaller |
| 21 | + python -m pip install -r requirements.txt |
| 22 | + - name: Build package |
| 23 | + run: | |
| 24 | + ./build.sh |
| 25 | + python -m PyInstaller src/fastanalyzer.py --onefile --noconsole --name="FastAnalyzer" #--icon=assets/images/icon.ico |
| 26 | + - name: Linux artefact |
| 27 | + uses: actions/upload-artifact@v3 |
| 28 | + with: |
| 29 | + name: FastAnalyzer_linux |
| 30 | + path: ./dist/FastAnalyzer |
| 31 | + |
| 32 | + build_macos: |
| 33 | + runs-on: macos-latest |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v2 |
| 36 | + - name: Set up Python |
| 37 | + uses: actions/setup-python@v2 |
| 38 | + with: |
| 39 | + python-version: '3.9' |
| 40 | + - name: Install dependencies |
| 41 | + run: | |
| 42 | + python -m pip install --upgrade pip |
| 43 | + python -m pip install pyinstaller |
| 44 | + python -m pip install -r requirements.txt |
| 45 | + - name: Build package |
| 46 | + run: | |
| 47 | + ./build.sh |
| 48 | + python -m PyInstaller src/fastanalyzer.py --onefile --noconsole --name="FastAnalyzer" --noconsole #--icon=assets/images/icon.ico |
| 49 | + - name: Mac artefact |
| 50 | + uses: actions/upload-artifact@v3 |
| 51 | + with: |
| 52 | + name: FastAnalyzer_macos |
| 53 | + path: ./dist/FastAnalyzer.app |
| 54 | + |
| 55 | + build_windows: |
| 56 | + runs-on: windows-latest |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@v2 |
| 59 | + - name: Set up Python |
| 60 | + uses: actions/setup-python@v2 |
| 61 | + with: |
| 62 | + python-version: '3.9' |
| 63 | + - name: Install dependencies |
| 64 | + run: | |
| 65 | + python -m pip install --upgrade pip |
| 66 | + python -m pip install pyinstaller |
| 67 | + python -m pip install -r requirements.txt |
| 68 | + - name: Build package |
| 69 | + shell: bash |
| 70 | + run: | |
| 71 | + ./build.sh |
| 72 | + python -m PyInstaller src/fastanalyzer.py --onefile --noconsole --name="FastAnalyzer" --noconsole #--icon=assets/images/icon.ico |
| 73 | + - name: Windows artefact |
| 74 | + uses: actions/upload-artifact@v3 |
| 75 | + with: |
| 76 | + name: FastAnalyzer_windows |
| 77 | + path: ./dist/FastAnalyzer.exe |
0 commit comments