Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Nightly_Experimental #851

Nightly_Experimental

Nightly_Experimental #851

#
# Builds using very experimental OS distributions that can fail very often.
#
# It is run at 00:00 UTC every day or on demand.
#
name: Nightly_Experimental
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
env:
GITHUB_REPO: pmem/rpma
# use GitHub Container Registry as a repository of docker images
GH_CR_ADDR: ghcr.io
DOCKER_REPO: ghcr.io/pmem/rpma
# use org's Private Access Token to log in to GitHub Container Registry
GH_CR_USER: ${{ secrets.GH_CR_USER }}
GH_CR_PAT: ${{ secrets.GH_CR_PAT }}
DOC_UPDATE_GITHUB_TOKEN: ${{ secrets.DOC_UPDATE_GITHUB_TOKEN }}
HOST_WORKDIR: /home/runner/work/rpma/rpma
WORKDIR: utils/docker
TYPE: normal
jobs:
experimental:
name: experimental
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
CONFIG: ["N=Fedora_Rawhide OS=fedora OS_VER=rawhide CC=gcc CI_SANITS=ON PUSH_IMAGE=0",
"N=Fedora_Rawhide_SANITS OS=fedora OS_VER=rawhide CC=clang CI_SANITS=ON PUSH_IMAGE=0",
"N=Fedora_Rawhide_no_SANITS OS=fedora OS_VER=rawhide CC=clang CI_SANITS=OFF PUSH_IMAGE=1 REBUILD_ALWAYS=YES",
"N=Ubuntu_Rolling OS=ubuntu OS_VER=rolling CC=clang CI_SANITS=ON PUSH_IMAGE=1 REBUILD_ALWAYS=YES",
# There is no official Docker image of CentOS Stream yet: https://hub.docker.com/_/centos
# and the unofficial one used so far (tgagor/centos:stream) has stopped working, so we have to disable it.
# "N=CentOS_Stream OS=centos OS_VER=stream CC=gcc CI_SANITS=OFF PUSH_IMAGE=1 REBUILD_ALWAYS=YES",
"N=Arch_Linux_Latest OS=archlinux OS_VER=latest CC=gcc CI_SANITS=OFF PUSH_IMAGE=1 REBUILD_ALWAYS=YES"]
steps:
- name: Clone the git repo
uses: actions/checkout@v1
- name: Pull or rebuild the image
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh
- name: Run the build
run: cd $WORKDIR && ${{ matrix.CONFIG }} ./build.sh
- name: Push the image
run: cd $WORKDIR && source ./set-vars.sh && ${{ matrix.CONFIG }} /bin/bash -c "if [[ -f ${CI_FILE_PUSH_IMAGE_TO_REPO} ]]; then images/push-image.sh; fi"