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