Skip to content

Commit

Permalink
Merge pull request #5832 from pmem/nightly-revamp
Browse files Browse the repository at this point in the history
common: split nightly into in-tree and packaging testing
  • Loading branch information
janekmi committed Jul 31, 2023
2 parents 8e3263a + 7268d39 commit 921da0e
Showing 1 changed file with 42 additions and 15 deletions.
57 changes: 42 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,39 @@ jobs:
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh rebuild

- name: Run the build
run: cd $WORKDIR && ${{ matrix.CONFIG }}
TEST_BUILD=${{ matrix.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
EXPERIMENTAL: 0
NDCTL_ENABLE: y
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./build-CI.sh

0 comments on commit 921da0e

Please sign in to comment.