Separate the ci jobs
Some checks failed
Build / build (push) Failing after 23s

This commit is contained in:
2025-06-02 16:21:20 +02:00
parent cd52871632
commit c0a1b0bbd5
2 changed files with 42 additions and 24 deletions

View File

@@ -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

View File

@@ -1,35 +1,26 @@
name: CI name: Release
on: on:
push: {} push:
tags:
- v.*
jobs: defaults:
build: run:
runs-on: ubuntu shell: bash
steps: working-directory: .
#- 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
jobs:
release: release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu runs-on: ubuntu
needs: build needs: build
container:
image: ubuntu:24.04
steps: steps:
#- name: Checkout code steps:
# uses: actions/checkout@v3 - name: Install build tools
run: apt update && apt install -y zip
- name: Download compiled binary - name: Download compiled binary
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with: