-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.38 KB
/
builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Builder
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Install docker
run: |
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
- name: Build PyInstaller version
run: |
docker run -v "$(pwd):/src/" cdrx/pyinstaller-linux:python3
cp dist/linux/bettersis dist/linux/bsis
ls
ls dist
ls dist/linux
- name: Build DEB package
run: |
cd deb
docker build -t deb_builder .
cd ..
docker run -v "$PWD:/src/" deb_builder
- name: Archive bettersis DEB package and Pyinstaller executable
uses: actions/upload-artifact@v2
with:
name: deb_pyinstaller_builds
path: |
deb/bettersis.deb
dist/linux/bsis