Skip to content

Commit 7697e5c

Browse files
committed
build(ci/cd): add basic Github workflow pipeline
1 parent 1dc231d commit 7697e5c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/pipeline.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: gdb-static-pipeline
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
push:
8+
tags:
9+
- 'v*'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: sudo apt-get install -y wget
20+
21+
- name: Build
22+
run: make build -j$((`nproc`+1))
23+
24+
- name: Pack
25+
run: make pack
26+
27+
- name: Upload artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: gdb-static
31+
path: build/artifacts/gdb-static*.tar.gz
32+
33+
- name: Publish release
34+
if: github.event_name == 'push'
35+
uses: softprops/action-gh-release@v2
36+
with:
37+
files: build/artifacts/gdb-static*.tar.gz

0 commit comments

Comments
 (0)