-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from Fantu/VAL-6.0-improve
[VAL-6.0] Improvements and fixes
- Loading branch information
Showing
7 changed files
with
261 additions
and
21 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,90 @@ | ||
# Use the latest 2.1 version of CircleCI pipeline process engine. | ||
# See: https://circleci.com/docs/2.0/configuration-reference | ||
version: 2.1 | ||
|
||
shared: &shared | ||
steps: | ||
- checkout | ||
- run: | ||
name: Prepare environment | ||
command: | | ||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||
apt-get update | ||
apt-get dist-upgrade -y | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
apt-get install -y g++ cmake uuid-dev libboost-program-options-dev libboost-filesystem-dev libssl-dev debhelper | ||
apt-get install -y dh-dkms || apt-get install -y dkms | ||
- run: | ||
name: Build blksnap-dkms package | ||
working_directory: pkg/deb/blksnap-dkms | ||
command: ./build.sh | ||
- run: | ||
name: Build blksnap-tools package | ||
working_directory: pkg/deb/blksnap-tools | ||
command: ./build.sh | ||
- run: | ||
name: Build blksnap-dev package | ||
working_directory: pkg/deb/blksnap-dev | ||
command: ./build.sh | ||
- run: | ||
name: Build blksnap-tests package | ||
working_directory: pkg/deb/blksnap-tests | ||
command: ./build.sh | ||
- run: | ||
name: Save generate packages as artifacts | ||
working_directory: build | ||
command: | | ||
mkdir /tmp/artifacts | ||
mv *.deb /tmp/artifacts | ||
- store_artifacts: | ||
path: /tmp/artifacts | ||
|
||
jobs: | ||
debian10: | ||
<<: *shared | ||
docker: | ||
- image: library/debian:buster | ||
debian11: | ||
<<: *shared | ||
docker: | ||
- image: library/debian:bullseye | ||
debian12: | ||
<<: *shared | ||
docker: | ||
- image: library/debian:bookworm | ||
ubuntu1404: | ||
<<: *shared | ||
docker: | ||
- image: library/ubuntu:trusty | ||
ubuntu1604: | ||
<<: *shared | ||
docker: | ||
- image: library/ubuntu:xenial | ||
ubuntu1804: | ||
<<: *shared | ||
docker: | ||
- image: library/ubuntu:bionic | ||
ubuntu2004: | ||
<<: *shared | ||
docker: | ||
- image: library/ubuntu:focal | ||
ubuntu2204: | ||
<<: *shared | ||
docker: | ||
- image: library/ubuntu:jammy | ||
ubuntu2310: | ||
<<: *shared | ||
docker: | ||
- image: library/ubuntu:mantic | ||
|
||
workflows: | ||
build-deb: | ||
jobs: | ||
- debian10 | ||
- debian11 | ||
- debian12 | ||
- ubuntu2004 | ||
- ubuntu2204 | ||
- ubuntu2310 |
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,50 @@ | ||
name: Build module | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "*" | ||
paths: | ||
- "module/**" | ||
pull_request: | ||
branches: | ||
- "*" | ||
paths: | ||
- "module/**" | ||
|
||
jobs: | ||
build-on-image: | ||
name: Kernel ${{ matrix.kversion }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.image }} | ||
# Disable seccomp until a container manager in GitHub recognizes | ||
# clone3() syscall, | ||
# <https://github.com/actions/virtual-environments/issues/3812>. | ||
options: --security-opt seccomp=unconfined | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- kversion: "5.10" | ||
image: "library/debian:bullseye" | ||
- kversion: "6.1" | ||
image: "library/debian:bookworm" | ||
- kversion: "last stable" | ||
image: "library/debian:sid" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install packages required | ||
run: | | ||
apt-get update | ||
apt-get install -y linux-headers-amd64 make g++ | ||
- name: Build kernel module | ||
run: | | ||
cd module | ||
make -Wall -C /lib/modules/*/build M=`pwd` | ||
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 |
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
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
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
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