diff --git a/.github/workflows/Linux.yml b/.github/workflows/Linux.yml new file mode 100644 index 0000000..ee1d6e1 --- /dev/null +++ b/.github/workflows/Linux.yml @@ -0,0 +1,63 @@ +name: Test build + +on: + push: + branches: + - "*" + paths-ignore: + - "README.md" + - "doc/**" + - "patches/**" + pull_request: + branches: + - "*" + paths-ignore: + - "README.md" + - "doc/**" + - "patches/**" + workflow_dispatch: + +jobs: + build: + name: amd64 + runs-on: ubuntu-22.04 + + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v4 + + - name: Install packages required + run: | + sudo apt-get update + sudo apt-get install -y linux-headers-$(uname -r) g++ cmake uuid-dev libboost-program-options-dev libboost-filesystem-dev libssl-dev + + - name: Build kernel module + run: | + cd module + ./mk.sh build + + - name: Build blksnap-tools + working-directory: tools/blksnap + run: | + mkdir bin + cd bin + cmake .. + make + + - name: Build blksnap-dev + working-directory: lib/blksnap + run: | + mkdir bin + cd bin + cmake .. + make + + - name: Build blksnap-tests + working-directory: tests/cpp + run: | + mkdir bin + cd bin + cmake .. + make