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:
|
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:
|
||||||
Reference in New Issue
Block a user