Skip to content

Commit a1e861c

Browse files
committed
Pyinstaller requirenment + build workflow
1 parent d0e4e87 commit a1e861c

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7+
8+
jobs:
9+
build:
10+
name: Build packages
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
include:
15+
- os: macos-latest
16+
TARGET: macos
17+
CMD_BUILD: pyinstaller src/main.py --onefile --nowindow -n docker-remote-proxy
18+
OUT_FILE_NAME: docker-remote-proxy
19+
- os: windows-latest
20+
TARGET: windows
21+
CMD_BUILD: pyinstaller src/main.py --onefile --nowindow -n docker-remote-proxy
22+
OUT_FILE_NAME: docker-remote-proxy.exe
23+
- os: ubuntu-latest
24+
TARGET: linux
25+
CMD_BUILD: pyinstaller src/main.py --onefile --nowindow -n docker-remote-proxy
26+
OUT_FILE_NAME: docker-remote-proxy
27+
steps:
28+
- uses: actions/checkout@v1
29+
- name: Set up Python 3.9
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: 3.9
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install -r requirements.txt
37+
- name: Build with pyinstaller for ${{matrix.TARGET}}
38+
run: ${{matrix.CMD_BUILD}}
39+
- name: Upload binaries to release
40+
uses: svenstaro/upload-release-action@v2
41+
with:
42+
repo_token: ${{ secrets.GITHUB_TOKEN }}
43+
file: ./dist/${{ matrix.OUT_FILE_NAME}}
44+
asset_name: ${{ matrix.OUT_FILE_NAME}}
45+
tag: ${{ github.ref }}
46+
overwrite: true
47+
body: "Builded App"

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
docker
2-
paramiko
2+
paramiko
3+
pyinstaller

0 commit comments

Comments
 (0)