forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 30
60 lines (52 loc) · 1.37 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build & CI
on:
create:
push:
branches:
- develop
- zfs-0.7-release
- 'v*'
paths-ignore:
- '*.md'
- 'changelogs/**'
pull_request:
branches:
- develop
- zfs-0.7-release
- 'v*'
paths-ignore:
- '*.md'
- 'changelogs/**'
jobs:
cstor:
runs-on: ubuntu-16.04
strategy:
fail-fast: true
matrix:
uzfs_build: [0, 1]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set Branch
run: |
BRANCH="${GITHUB_REF##*/}"
REPO_ORG=${{ github.repository_owner }}
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
echo "REPO_ORG=${REPO_ORG}" >> $GITHUB_ENV
- name: Install Tool dependencies
run: buildscripts/install-tool-dep.sh
- name: Install Build dependencies
run: UZFS_BUILD=${{ matrix.uzfs_build }} buildscripts/install-build-dep.sh
- name: Check style
run: make cstyle
- name: Run Tests
# run ztest and test supported zio backends
shell: bash
run: |
if [ "${{ matrix.uzfs_build }}" = 1 ]; then
sudo bash ./print_debug_info.sh &
sudo FIO_SRCDIR=$PWD/../fio bash ../libcstor/tests/cstor/script/test_uzfs.sh -T all || exit 1
else
sudo /sbin/modprobe zfs
/sbin/ztest || exit 1
fi