From c0a1b0bbd5b9befcbe7a6010f1d70a8e1dbbbcb4 Mon Sep 17 00:00:00 2001 From: bartfaik04 Date: Mon, 2 Jun 2025 16:21:20 +0200 Subject: [PATCH] Separate the ci jobs --- .gitea/workflows/build.yml | 27 ++++++++++++++++ .gitea/workflows/{ci.yml => release.yml} | 39 +++++++++--------------- 2 files changed, 42 insertions(+), 24 deletions(-) create mode 100644 .gitea/workflows/build.yml rename .gitea/workflows/{ci.yml => release.yml} (63%) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..52a9abd --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: {} + +defaults: + run: + shell: bash + working-directory: . + +jobs: + build: + runs-on: ubuntu + container: + image: ubuntu:24.04 + steps: + - name: Install build tools + run: apt update && apt install -y build-essential + + - name: Compile project + run: make + + - name: Save build output + uses: actions/upload-artifact@v3 + with: + name: ncsambawatcher + path: ./ncsambawatcher \ No newline at end of file diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/release.yml similarity index 63% rename from .gitea/workflows/ci.yml rename to .gitea/workflows/release.yml index 72b4b33..8e26b4f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/release.yml @@ -1,35 +1,26 @@ -name: CI +name: Release on: - push: {} + push: + tags: + - v.* -jobs: - build: - runs-on: ubuntu - steps: - #- name: Checkout code - # uses: actions/checkout@v3 - - - name: Install build tools - run: apt update && apt install -y build-essential zip - - - name: Compile project - run: make - - - name: Save build output - uses: actions/upload-artifact@v3 - with: - name: ncsambawatcher - path: ./ncsambawatcher +defaults: + run: + shell: bash + working-directory: . +jobs: release: - if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu needs: build + container: + image: ubuntu:24.04 steps: - #- name: Checkout code - # uses: actions/checkout@v3 - + steps: + - name: Install build tools + run: apt update && apt install -y zip + - name: Download compiled binary uses: actions/download-artifact@v3 with: