build(ci/cd): add basic Github workflow pipeline
This commit is contained in:
parent
1dc231d162
commit
7697e5c2e1
37
.github/workflows/pipeline.yaml
vendored
Normal file
37
.github/workflows/pipeline.yaml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: gdb-static-pipeline
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get install -y wget
|
||||
|
||||
- name: Build
|
||||
run: make build -j$((`nproc`+1))
|
||||
|
||||
- name: Pack
|
||||
run: make pack
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: gdb-static
|
||||
path: build/artifacts/gdb-static*.tar.gz
|
||||
|
||||
- name: Publish release
|
||||
if: github.event_name == 'push'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: build/artifacts/gdb-static*.tar.gz
|
Loading…
x
Reference in New Issue
Block a user