Skip to content

Commit

Permalink
github: add amazonlinux
Browse files Browse the repository at this point in the history
Note that ubuntu-latest has switched to CGroup V2, so can't launch
CGroup V1 container by default.

Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
  • Loading branch information
kenhys committed Dec 8, 2023
1 parent e8a2d9c commit 9d2952b
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions .github/workflows/yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,47 @@ jobs:
--env CENTOS_STREAM=${{ matrix.centos-stream }} \
${{ matrix.test-docker-image }} \
/fluentd/fluent-package/yum/binstubs-test.sh
test:
name: Test
v1test:
name: Test with CGroup V1
needs: build
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
label:
- CentOS 7 x86_64
- AmazonLinux 2 x86_64
- AmazonLinux 2023 x86_64
include:
- label: CentOS 7 x86_64
rake-job: centos-7
test-lxc-image: images:centos/7
- label: AmazonLinux 2 x86_64
rake-job: amazonlinux-2
test-lxc-image: images:amazonlinux/2
- label: AmazonLinux 2023 x86_64
rake-job: amazonlinux-2023
test-lxc-image: images:amazonlinux/2023
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: packages-${{ matrix.rake-job }}
- uses: canonical/setup-lxd@v0.1.1
- name: Run Test
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.test-lxc-image }}

v2test:
name: Test with CGroup V2
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
label:
# CGroup V1 is not supported
# - CentOS 7 x86_64
- RockyLinux 8 x86_64
- AlmaLinux 9 x86_64
include:
# - label: CentOS 7 x86_64
# rake-job: centos-7
# test-lxc-image: images:centos/7
- label: RockyLinux 8 x86_64
rake-job: rockylinux-8
test-lxc-image: images:rockylinux/8
Expand Down

0 comments on commit 9d2952b

Please sign in to comment.