2024-07-17 02:36:15 -05:00
|
|
|
name: Build Inex Executable
|
2024-07-17 13:24:01 -05:00
|
|
|
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ gitea.actor }}
|
2024-07-17 02:36:15 -05:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Build:
|
2024-07-17 14:09:15 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2024-07-17 02:36:15 -05:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: '3.12.4'
|
|
|
|
cache: 'pip' # caching pip dependencies
|
2024-07-17 14:10:55 -05:00
|
|
|
- run: apt-get update
|
2024-07-17 14:12:41 -05:00
|
|
|
- run: apt-get install unixodbc -y
|
2024-07-17 13:14:56 -05:00
|
|
|
- run: pip install -r requirements.txt
|
2024-07-17 13:29:49 -05:00
|
|
|
- run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
|
2024-07-17 14:16:07 -05:00
|
|
|
- run: ls ${{ gitea.workspace }}
|
2024-07-17 14:17:49 -05:00
|
|
|
- run: ls ${{ gitea.workspace }}/dist/
|
2024-07-17 13:14:56 -05:00
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: Inex
|
2024-07-17 14:19:41 -05:00
|
|
|
path: ${{ gitea.workspace }}/dist/inex
|