1- #
2- # The 'XXX_DISABLE_' suffix is used twice in this file to disable two actions:
3- # 1) XXX_DISABLE_${CI_FILE_PUSH_IMAGE_TO_REPO} - disables pushing the rebuilt Docker image and
4- # 2) XXX_DISABLE_AUTO_DOC_UPDATE - disables making pull requests with the update of documentation.
5- # Those two actions are disabled, because they conflict with the same ones run on Travis.
6- # Only one CI (Travis or GitHub Actions) can run them at the time, so they can be enabled here,
7- # when we decide to switch from Travis to GitHub Actions. The 'XXX_DISABLE_' suffix should be removed then.
8- #
91
102name : CPP
113on : [push, pull_request]
@@ -22,13 +14,14 @@ jobs:
2214 env :
2315 DOCKERHUB_USER : ${{ secrets.DOCKERHUB_USER }}
2416 DOCKERHUB_PASSWORD : ${{ secrets.DOCKERHUB_PASSWORD }}
17+ GITHUB_TOKEN : ${{ secrets.DOC_UPDATE_GITHUB_TOKEN }}
2518 HOST_WORKDIR : /home/runner/work/libpmemobj-cpp/libpmemobj-cpp
2619 WORKDIR : utils/docker
2720 strategy :
2821 matrix :
2922 CONFIG : ["TYPE=debug OS=fedora OS_VER=32 PUSH_IMAGE=1",
3023 " TYPE=debug OS=ubuntu OS_VER=20.04 PUSH_IMAGE=1 CHECK_CPP_STYLE=1" ,
31- " TYPE=release OS=fedora OS_VER=32 XXX_DISABLE_AUTO_DOC_UPDATE =1" ,
24+ " TYPE=release OS=fedora OS_VER=32 AUTO_DOC_UPDATE =1" ,
3225 " TYPE=release OS=ubuntu OS_VER=20.04" ,
3326 " TYPE=valgrind OS=ubuntu OS_VER=20.04" ,
3427 " TYPE=memcheck_drd OS=ubuntu OS_VER=20.04" ,
4033 - name : Clone the git repo
4134 uses : actions/checkout@v2
4235 with :
43- fetch-depth : 50
36+ fetch-depth : 0
4437
4538 - name : Pull or rebuild the image
4639 run : cd $WORKDIR && ${{ matrix.CONFIG }} ./pull-or-rebuild-image.sh rebuild
4942 run : cd $WORKDIR && ${{ matrix.CONFIG }} ./build.sh
5043
5144 - name : Push the image
52- run : cd $WORKDIR && source ./set-vars.sh && ${{ matrix.CONFIG }} /bin/bash -c "if [[ -f XXX_DISABLE_ ${CI_FILE_PUSH_IMAGE_TO_REPO} ]]; then images/push-image.sh $OS-$OS_VER; fi"
45+ 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 $OS-$OS_VER; fi"
5346
5447 windows :
5548 name : Windows
8881 - name : Clone the git repo
8982 uses : actions/checkout@v2
9083 with :
91- fetch-depth : 50
84+ fetch-depth : 0
9285
9386 - name : Install PMDK
9487 run : |
0 commit comments