From 95c5c5b1a403d9760457d86aed3880be29851a0f Mon Sep 17 00:00:00 2001 From: Sam Yuan Date: Thu, 6 Jun 2024 21:47:49 +0800 Subject: [PATCH] try to build binary file Signed-off-by: Sam Yuan --- .github/workflows/binary.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/binary.yml diff --git a/.github/workflows/binary.yml b/.github/workflows/binary.yml new file mode 100644 index 00000000..c28aaf3a --- /dev/null +++ b/.github/workflows/binary.yml @@ -0,0 +1,34 @@ +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check-out repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.8' # Version range or exact version of a Python version to use, using SemVer's version range syntax + cache: 'pip' + cache-dependency-path: | + dockerfiles/requirements*.txt + + - name: Install Dependencies + run: | + pip install -r dockerfiles/requirements.txt + pip install pyinstaller + + - name: build + run: | + pyinstaller ./cmd/main.py + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + path: | + build/main/main \ No newline at end of file