diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..97d2dda --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build kpatch + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: src/kpatch + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install build tools + run: sudo apt-get update && sudo apt-get install -y build-essential + + - name: Build kpatch binaries + run: make + + - name: Upload entire repository as zip + uses: actions/upload-artifact@v4 + with: + name: psfree-lapse-archive + path: ${{ github.workspace }} + if-no-files-found: error + compression-level: 9