Skip to content

Commit

Permalink
common: split nightly into in-tree and packaging testing
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Michalski <[email protected]>
  • Loading branch information
janekmi committed Jul 28, 2023
1 parent 8e3263a commit 7b3ba8e
Showing 1 changed file with 40 additions and 15 deletions.
55 changes: 40 additions & 15 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,21 @@ env:
WORKDIR: utils/docker
PMDK_CC: gcc
PMDK_CXX: g++
MAKE_PKG: 0
VALGRIND: 1
SRC_CHECKERS: 0

jobs:
linux:
name: Linux
in-tree:
name: In-tree
runs-on: ubuntu-latest
strategy:
matrix:
CONFIG: [
"OS=ubuntu OS_VER=22.04 MAKE_PKG=1 VALGRIND=0",
"OS=ubuntu OS_VER=22.04 MAKE_PKG=1 VALGRIND=0 PMDK_CC=clang PMDK_CXX=clang++",
"OS=opensuse-leap OS_VER=15 TEST_BUILD=debug",
"OS=opensuse-leap OS_VER=15 TEST_BUILD=nondebug",
"OS=opensuse-leap OS_VER=15 MAKE_PKG=1 VALGRIND=0",
"OS=rockylinux OS_VER=8 TEST_BUILD=debug",
"OS=rockylinux OS_VER=8 TEST_BUILD=nondebug",
"OS=rockylinux OS_VER=8 MAKE_PKG=1 VALGRIND=0",
"OS=rockylinux OS_VER=9 TEST_BUILD=debug",
"OS=rockylinux OS_VER=9 TEST_BUILD=nondebug",
"OS=rockylinux OS_VER=9 MAKE_PKG=1 VALGRIND=0",
"OS=ubuntu OS_VER=22.04",
"OS=opensuse-leap OS_VER=15",
"OS=rockylinux OS_VER=8",
"OS=rockylinux OS_VER=9",
]
TEST_BUILD: [debug, nondebug]
steps:
- name: Clone the git repo
uses: actions/checkout@v3
Expand All @@ -53,4 +45,37 @@ jobs:
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh rebuild

- name: Run the build
run: cd $WORKDIR && ${{ matrix.CONFIG }} TEST_BUILD=${{ TEST_BUILD }}
./build-CI.sh


packaging:
name: Packaging
needs: in-tree
runs-on: ubuntu-latest
strategy:
matrix:
CONFIG: [
"OS=ubuntu OS_VER=22.04 PMDK_CC=clang PMDK_CXX=clang++",
"OS=ubuntu OS_VER=22.04",
"OS=opensuse-leap OS_VER=15",
"OS=rockylinux OS_VER=8",
"OS=rockylinux OS_VER=9",
]
steps:
- name: Clone the git repo
uses: actions/checkout@v3
with:
fetch-depth: 50

- name: Get system information
run: ./$WORKDIR/get-system-info.sh

- name: Pull or rebuild the image
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh rebuild

- name: Run the build
env:
MAKE_PKG: 1
VALGRIND: 0
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./build-CI.sh

0 comments on commit 7b3ba8e

Please sign in to comment.