This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
57 lines (51 loc) · 1.84 KB
/
nightly.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
name: pmemkv-nightly
# It runs non-deafult OSes, listed below with basic set of compilers and tests.
# instead of running it every night, it's now run only on-demand
on:
workflow_dispatch:
inputs:
build_type:
description: 'Build type (as defined in build.sh)'
required: true
default: 'debug'
env:
REPO: pmemkv
GITHUB_REPO: pmem/pmemkv
CONTAINER_REG: ghcr.io/pmem/pmemkv
HOST_WORKDIR: ${{ github.workspace }}
WORKDIR: utils/docker
TEST_TIMEOUT: 900
IMG_VER: latest
TYPE: ${{ github.event.inputs.build_type }}
PUSH_IMAGE: 1
# use org's Private Access Token to log in to GitHub Container Registry
CONTAINER_REG_USER: ${{ secrets.GH_CR_USER }}
CONTAINER_REG_PASS: ${{ secrets.GH_CR_PAT }}
jobs:
linux:
name: Linux-nightly
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
CONFIG: ["OS=almalinux OS_VER=8",
"OS=archlinux-base OS_VER=latest",
"OS=debian OS_VER=testing",
"OS=debian OS_VER=unstable",
"OS=debian OS_VER=latest",
"OS=fedora OS_VER=33",
"OS=fedora OS_VER=34",
"OS=fedora OS_VER=rawhide",
"OS=opensuse-leap OS_VER=latest",
"OS=opensuse-tumbleweed OS_VER=latest",
"OS=ubuntu OS_VER=18.04",
"OS=ubuntu OS_VER=21.04",
"OS=ubuntu OS_VER=devel"]
steps:
- name: Clone the git repo
uses: actions/checkout@v2
# It rebuilds images every time and pushes them to the container registry
- name: Rebuild and push the image
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh rebuild
- name: Run the build
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./build.sh