From fb9dac921b887e6441da9d1af8b4581323d15f74 Mon Sep 17 00:00:00 2001 From: Aleksandr Tcitlionok <803797+terghalin@users.noreply.github.com> Date: Wed, 11 Dec 2024 13:06:27 +0000 Subject: [PATCH] add(ci): build binary --- .gitea/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..376d375 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: Build Binary + +on: + push: + branches: + - main + tags: + - 'v*' + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install pyinstaller + + - name: Build Binary + run: pyinstaller --onefile --name=metalcheck main.py + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: metalcheck-cli + path: dist/metalcheck