Release 5.0.6 #683
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Yum based Linux (AArch64) | |
on: | |
push: | |
branches: | |
- master | |
- fluent-package-v5 | |
pull_request: | |
concurrency: | |
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
strategy: | |
fail-fast: false | |
matrix: | |
label: | |
- RockyLinux 8 aarch64 | |
- AlmaLinux 9 aarch64 | |
- Amazon Linux 2 aarch64 | |
- Amazon Linux 2023 aarch64 | |
include: | |
- label: RockyLinux 8 aarch64 | |
rake-job: rockylinux-8 | |
test-docker-image: arm64v8/rockylinux:8 | |
- label: AlmaLinux 9 aarch64 | |
rake-job: almalinux-9 | |
test-docker-image: arm64v8/almalinux:9 | |
- label: Amazon Linux 2 aarch64 | |
rake-job: amazonlinux-2 | |
test-docker-image: arm64v8/amazonlinux:2 | |
- label: Amazon Linux 2023 aarch64 | |
rake-job: amazonlinux-2023 | |
test-docker-image: arm64v8/amazonlinux:2023 | |
runs-on: ubuntu-24.04-arm | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt -V install ruby ruby-bundler ruby-serverspec | |
sudo gem install bundler:2.2.9 --no-document | |
sudo gem uninstall fileutils | |
- name: cache rpm | |
uses: actions/cache@v4 | |
id: cache-rpm | |
with: | |
path: | | |
fluent-package/yum/repositories | |
key: ${{ runner.os }}-cache-${{ matrix.rake-job }}-${{ hashFiles('**/config.rb', '**/Rakefile', '**/Gemfile*', '**/*.spec.in', 'fluent-package/templates/**', 'fluent-package/yum/**/Dockerfile') }} | |
- name: Build rpm with Docker | |
run: | | |
rake yum:build YUM_TARGETS=${{ matrix.rake-job }}-aarch64 | |
- name: Upload fluent-package rpm | |
uses: actions/upload-artifact@master | |
with: | |
name: packages-${{ matrix.rake-job }}-aarch64 | |
path: fluent-package/yum/repositories | |
- name: Check Package Size | |
run: | | |
fluent-package/yum/pkgsize-test.sh ${{ matrix.rake-job }} aarch64 | |
- name: Installation Test | |
run: | | |
mkdir -p .bundle | |
docker run \ | |
--rm \ | |
--tty \ | |
--env CI=true \ | |
--volume ${PWD}:/fluentd:ro \ | |
${{ matrix.test-docker-image }} \ | |
/fluentd/fluent-package/yum/install-test.sh | |
- name: Serverspec Test | |
run: | | |
mkdir -p .bundle | |
docker run \ | |
--rm \ | |
--tty \ | |
--env CI=true \ | |
--volume ${PWD}:/fluentd:ro \ | |
${{ matrix.test-docker-image }} \ | |
/fluentd/fluent-package/yum/serverspec-test.sh | |
- name: Binstubs Test | |
run: | | |
mkdir -p .bundle | |
docker run \ | |
--rm \ | |
--tty \ | |
--env CI=true \ | |
--volume ${PWD}:/fluentd:ro \ | |
${{ matrix.test-docker-image }} \ | |
/fluentd/fluent-package/yum/binstubs-test.sh |