This commit is contained in:
27
.gitea/workflows/build.yml
Normal file
27
.gitea/workflows/build.yml
Normal 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
|
||||
@@ -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:
|
||||
Reference in New Issue
Block a user