From 7697e5c2e1a95b3bc48c434f82f76a12fd04fd37 Mon Sep 17 00:00:00 2001 From: Roi Klevansky Date: Sat, 12 Oct 2024 19:05:52 +0300 Subject: [PATCH] build(ci/cd): add basic Github workflow pipeline --- .github/workflows/pipeline.yaml | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/pipeline.yaml diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml new file mode 100644 index 0000000..4a4e748 --- /dev/null +++ b/.github/workflows/pipeline.yaml @@ -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