Skip to content

Commit

Permalink
add github workflow for test build of all
Browse files Browse the repository at this point in the history
merged from VAL-6.1 and changed to support old build system
  • Loading branch information
Fantu committed Nov 1, 2023
1 parent 1e0edef commit 0f041a4
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0f041a4

Please sign in to comment.