Skip to content

Commit

Permalink
Merge branch 'main' into el9_x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
octo committed Nov 26, 2023
2 parents cc27a8d + 8be00cd commit ee1557b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 28 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/daily-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Daily container builds

on:
schedule:
- cron: '0 0 * * *'
- cron: '49 7 * * *'

jobs:
build:
Expand All @@ -16,7 +16,8 @@ jobs:
matrix:
branch:
- sid_amd64
- fedora34_x86_64
- fedora38_x86_64
- fedora_rawhide_x86_64

env:
SLUG: "collectd/ci:${{ matrix.branch }}"
Expand Down
22 changes: 9 additions & 13 deletions .github/workflows/merge-jobs.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
name: Merge jobs
name: Build on Push

on:
push:
branches-ignore:
- main
# topic branches (e.g. fix/something)
- '**/**'

jobs:
build_and_publish_container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get branch name
- uses: actions/checkout@v4
- name: Determine container name
run: |
export BRANCH="$(${{ github.ref }} | rev | cut -d '/' -f1 | rev )
- run:
export SLUG="collectd/ci:${BRANCH}"
branch="$(sed -e 's#refs/heads/##' <<<"${{ github.ref }}")"
echo "SLUG=collectd/ci:${branch:?}" >>"${GITHUB_ENV}"
- name: Build container
run:
docker build --pull -t "${SLUG}" .
- run: docker inspect "${SLUG}"
- run: docker history "${SLUG}"
run: docker build --pull -t "${SLUG:?}" .
- run: docker inspect "${SLUG:?}"
- run: docker history "${SLUG:?}"
- run: docker images
- name: Log into the container registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: docker push "${SLUG}"
- run: docker push "${SLUG:?}"
17 changes: 13 additions & 4 deletions .github/workflows/pr-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,26 @@ jobs:
runs-on: ubuntu-latest
env:
SLUG: "collectd/ci:test"
VALGRIND_OPTS: "--errors-for-leak-kinds=definite"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build container
run: docker build -t "${SLUG}" .
- run: docker inspect "${SLUG}"
- name: Inspect container
run: docker inspect "${SLUG}"
- name: Check out the latest verison of collectd
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: collectd/collectd
ref: main
path: ${{ github.workspace }}/collectd
- name: Create the test container
run: |
docker run -itd --name collectd-pr-test -v "${GITHUB_WORKSPACE}/collectd:/collectd" -w /collectd "${SLUG}"
- name: Make sure collectd builds on the container
run: |
docker run -v "${GITHUB_WORKSPACE}/collectd:/collectd" -w /collectd "${SLUG}" bash -c './build.sh && ./configure && make'
docker exec -w /collectd collectd-pr-test bash -c './build.sh && ./configure && make -sk'
- name: Run collectd unit tests
continue-on-error: true
run: |
docker exec -w /collectd collectd-pr-test make check
24 changes: 15 additions & 9 deletions .github/workflows/weekly-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Weekly container builds

on:
schedule:
- cron: '0 0 * * 0'
- cron: '32 6 * * 0'

jobs:
build:
Expand All @@ -15,20 +15,26 @@ jobs:
matrix:
branch:
# Debian
# Debian 12
- bookworm_amd64
# Debian 11
- bullseye_amd64
# Debian 10
- buster_amd64
# Ubuntu
# Ubuntu 16.04
- xenial_amd64
# Ubuntu 14.04
- trusty_amd64
# Fedora
- fedora34_x86_64
# Ubuntu 23.10
- mantic_amd64
# Ubuntu 22.04
- jammy_amd64
# Ubuntu 20.04
- focal_amd64
# Ubuntu 18.04
- bionic_amd64
# CentOS
- el7_x86_64
- el8_x86_64
- el9_x86_64
# Fedora
- fedora39
- fedora38_x86_64

env:
SLUG: "collectd/ci:${{ matrix.branch }}"
Expand Down
1 change: 1 addition & 0 deletions debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ COMMON_PACKAGES="\
automake \
autotools-dev \
bison \
bzip2 \
clang \
cpp \
dpkg-dev \
Expand Down

0 comments on commit ee1557b

Please sign in to comment.