-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1021 Bytes
/
main.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
46
47
48
49
50
51
52
name: Build
on:
push:
branches: [ master ]
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install pyinstaller
run: pip install pyinstaller
- name: Install pipreqs
run: pip install pipreqs
- name: Generate requirements.txt
run: |
pipreqs --force .
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Set up UPX
run: |
choco install upx -y
- name: Build EXE
run: |
pyinstaller cccam2oscam.spec
- name: Create artifact
run: |
cd dist
move cccam2oscam_*.exe ..
- name: Save ZIP artifact
uses: actions/upload-artifact@v4
with:
name: cccam2oscam-win64
path: cccam2oscam_*.exe