-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.35 KB
/
build_executable.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
name: Compile and Push
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Install Python 3.10
id: python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Update PIP
run: |
python -m pip install --upgrade pip
- name: Setup Compile Dependencies
run: |
python -m pip install --upgrade pyinstaller
- name: Setup Code Dependencies
run: |
python -m pip install --upgrade -r ./workflowHelper/requirements.txt
- name: Setup Version File
run: |
python ./workflowHelper/exeversion.py
- name: Compile Package
run: |
python ./workflowHelper/build.py
- name: Test Executable
run: |
./bin/catw.exe -h
./bin/catw.exe -v
./bin/catw.exe -p ./bin/catw.exe -R --debug
- name: Show and Push
run: |
git status
git config --local user.name 'github-actions[bot]'
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
git add ./bin/*
git commit -m "🤖Compiled Binary."
git push origin HEAD:main
continue-on-error: true