Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guillaumefalourd/poc-pyinstaller

POC using PyInstaller with Github Actions
https://github.com/guillaumefalourd/poc-pyinstaller

github-actions poc pyinstaller

Last synced: about 2 months ago
JSON representation

POC using PyInstaller with Github Actions

Awesome Lists containing this project

README

        

# poc-pyinstaller

[![PyInstaller](https://github.com/GuillaumeFalourd/poc-pyinstaller/actions/workflows/pyinstaller.yml/badge.svg)](https://github.com/GuillaumeFalourd/poc-pyinstaller/actions/workflows/pyinstaller.yml)

POC using PyInstaller with Github Actions to generate binaries from a python script.

## Demo

Workflow run: https://github.com/GuillaumeFalourd/poc-pyinstaller/actions/runs/1505378109

![Screen Shot 2021-11-25 at 19 11 39](https://user-images.githubusercontent.com/22433243/143503852-364abe39-e817-4ef5-af8e-536e54d6a46d.png)

## Workflow

```yaml
name: PyInstaller

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest', 'ubuntu-latest', 'macos-latest']

steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v2
with:
python-version: 3.7

- run: pip install -r requirements.txt pyinstaller
- run: pyinstaller poc.py
# Optional to check the files
- run: |
cd ./dist/poc
ls
- uses: actions/upload-artifact@v2
with:
name: artifact-${{ matrix.os }}
path: dist/*
```