Inex/.gitea/workflows/build.yaml

36 lines
1.2 KiB
YAML
Raw 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
# - 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:36:38 -05:00
- uses: actions/setup-python@v5
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:33:21 -05:00
- run: python pip install -r requirements.txt
- run: python 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