Skip to content

Commit

Permalink
fix: corrected workflow running conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed Jun 23, 2024
1 parent 8e158b0 commit 06eb8bf
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions .github/workflows/create-publish-docker.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Create Docker image and publish to GH Packages

on:
pull_request:
push:
branches: [ main ] # create a new version whenever we push to main
schedule:
- cron: "12 2 2 * *" # run at 2:12 of the 2nd of every month

env:
DOCKER_REGISTRY: ghcr.io # where to register the image
Expand Down Expand Up @@ -47,20 +49,18 @@ jobs:
matrix:
# NOTE: valgrind container is fedora, gcc, devel
# see https://r-hub.github.io/containers/containers.html#valgrind
# target-os: ['debian', 'fedora']
target-os: ['debian']
target-os: ['debian', 'fedora']
compiler: ['gcc', 'clang']
r-version: ['devel', 'release', 'patched']
exclude:
- target-os: 'debian'
# - target-os: 'fedora'
# r-version: 'release'
# - target-os: 'fedora'
# r-version: 'patched'
# - compiler: 'clang'
# r-version: 'patched'
# - compiler: 'clang'
# r-version: 'release'
- target-os: 'fedora'
r-version: 'release'
- target-os: 'fedora'
r-version: 'patched'
- compiler: 'clang'
r-version: 'patched'
- compiler: 'clang'
r-version: 'release'
include:
- target-os: 'valgrind'
compiler: 'gcc'
Expand Down Expand Up @@ -122,20 +122,18 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
# target-os: ['debian', 'fedora']
target-os: ['debian']
target-os: ['debian', 'fedora']
compiler: ['gcc', 'clang']
r-version: ['devel', 'release', 'patched']
exclude:
- target-os: 'debian'
# - target-os: 'fedora'
# r-version: 'release'
# - target-os: 'fedora'
# r-version: 'patched'
# - compiler: 'clang'
# r-version: 'patched'
# - compiler: 'clang'
# r-version: 'release'
- target-os: 'fedora'
r-version: 'release'
- target-os: 'fedora'
r-version: 'patched'
- compiler: 'clang'
r-version: 'patched'
- compiler: 'clang'
r-version: 'release'
include:
- target-os: 'valgrind'
compiler: 'gcc'
Expand Down

0 comments on commit 06eb8bf

Please sign in to comment.