ci: add AlmaLinux 10 for RPM tests #4386
Workflow file for this run
This file contains hidden or 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: Windows | |
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 | |
timeout-minutes: 90 | |
strategy: | |
fail-fast: false | |
runs-on: windows-2022 | |
steps: | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
- uses: actions/checkout@v4 | |
- name: cache msi | |
uses: actions/cache@v4 | |
id: cache-msi | |
with: | |
path: fluent-package/msi/repositories | |
key: ${{ runner.os }}-cache-windows-${{ hashFiles('**/config.rb', '**/Rakefile', '**/Gemfile*', '!**/*.ps1', 'fluent-package/msi/source.wxs', 'fluent-package/msi/parameters.wxi.erb', 'fluent-package/msi/localization-en-us.wxl', 'fluent-package/msi/exclude-files.xslt', 'fluent-package/msi/Dockerfile') }} | |
- name: Build | |
if: ${{ ! steps.cache-msi.outputs.cache-hit }} | |
run: | | |
gem install serverspec | |
gem install bundler:2.2.9 --no-document | |
rake msi:build | |
- name: Upload td-agent msi | |
uses: actions/upload-artifact@master | |
with: | |
name: packages-windows-x86_64 | |
path: fluent-package/msi/repositories | |
check_package_size: | |
name: Check Package Size | |
needs: build | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: packages-windows-x86_64 | |
path: fluent-package/msi/repositories | |
- name: Check Package Size | |
shell: pwsh | |
run: | | |
powershell -ExecutionPolicy Bypass -Command ".\fluent-package\msi\pkgsize-test.ps1" | |
test: | |
name: Test ${{ matrix.test }} | |
needs: build | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
test: | |
- "install-test.ps1" | |
- "update-from-v4-test.ps1" | |
- "update-from-v4-test.ps1 -ViaV5" | |
- "update-from-v5-test.ps1" | |
- "serverspec-test.ps1" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: packages-windows-x86_64 | |
path: fluent-package/msi/repositories | |
- name: Installation Test | |
shell: pwsh | |
run: | | |
mkdir -p .bundle | |
docker run ` | |
--rm ` | |
--tty ` | |
--volume ${PWD}:C:\fluentd:ro ` | |
mcr.microsoft.com/dotnet/framework/runtime:3.5 ` | |
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\${{ matrix.test }}" |