forked from veeam/blksnap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github workflow for test build of all
merged from VAL-6.1 and changed to support old build system
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |