2024-07-25 13:30:21 -05:00
|
|
|
name: Build
|
|
|
|
on: push
|
2024-07-17 02:36:15 -05:00
|
|
|
|
|
|
|
jobs:
|
2024-07-30 13:13:16 -05:00
|
|
|
# build-linux-binary:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v4
|
|
|
|
# - uses: actions/setup-python@v5
|
|
|
|
# with:
|
|
|
|
# python-version: '3.12.4'
|
|
|
|
# cache: 'pip' # caching pip dependencies
|
|
|
|
# - run: apt-get update
|
|
|
|
# - run: apt-get install unixodbc -y
|
|
|
|
# - run: pip install -r requirements.txt
|
|
|
|
# - run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
|
|
|
|
# - uses: softprops/action-gh-release@v2
|
|
|
|
# - name: Release
|
|
|
|
# uses: softprops/action-gh-release@v2
|
|
|
|
# if: startsWith(gitea.ref, 'refs/tags/')
|
|
|
|
# with:
|
|
|
|
# files: ${{ gitea.workspace }}/dist/inex
|
2024-07-25 13:30:21 -05:00
|
|
|
build-windows-binary:
|
2024-07-30 14:16:33 -05:00
|
|
|
runs-on: windows
|
2024-07-25 16:09:09 -05:00
|
|
|
permissions:
|
|
|
|
contents: write # release changes require contents write
|
2024-07-25 13:30:21 -05:00
|
|
|
steps:
|
2024-07-25 16:09:09 -05:00
|
|
|
- uses: actions/checkout@v4
|
2024-07-30 17:45:33 -05:00
|
|
|
- uses: actions/setup-python@v4
|
2024-07-30 17:41:07 -05:00
|
|
|
with:
|
|
|
|
python-version: '3.12.4'
|
|
|
|
# cache: 'pip' # caching pip dependencies
|
2024-07-30 13:31:27 -05:00
|
|
|
# - name: Upload Release Asset
|
2024-07-30 15:56:49 -05:00
|
|
|
## env:
|
2024-07-30 13:31:27 -05:00
|
|
|
# GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
2024-07-30 17:51:21 -05:00
|
|
|
- run: python -m pip install -r requirements.txt
|
|
|
|
- run: python -m pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
|
2024-07-30 13:13:16 -05:00
|
|
|
# run: gh release upload <release_tag> <a_file>
|
2024-07-25 13:30:21 -05:00
|
|
|
|