Inex/.gitea/workflows/build.yaml

33 lines
1.1 KiB
YAML
Raw Permalink Normal View History

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
2024-07-30 19:40:12 -05:00
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'
2024-07-30 17:54:39 -05:00
cache: 'pip' # caching pip dependencies
2024-07-30 17:51:21 -05:00
- run: python -m pip install -r requirements.txt
2024-07-30 17:54:39 -05:00
- run: pyinstaller --noconfirm --onefile --console ${{ gitea.workspace }}/inex.py
2024-07-30 19:40:12 -05:00
- uses: softprops/action-gh-release@v2
if: startsWith(gitea.ref, 'refs/tags/')
with:
files: ${{ gitea.workspace }}/dist/inex.exe