Release v6.0.3 (#999) #4770
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-v6 | |
| 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@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1.295.0 | |
| with: | |
| ruby-version: 3.2 | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: cache msi | |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| id: cache-msi | |
| with: | |
| path: fluent-package/msi/repositories | |
| key: ${{ runner.os }}-cache-windows-${{ hashFiles('**/config.rb', '**/Rakefile', '**/Gemfile*', 'fluent-package/msi/assets/*', '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@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| 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" | |
| - "install-test-with-install-path-including-space.ps1" | |
| - "update-from-v4-test.ps1" | |
| - "update-from-v4-test.ps1 -ViaV5" | |
| - "update-from-v5-test.ps1" | |
| - "serverspec-test.ps1" | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: packages-windows-x86_64 | |
| path: fluent-package/msi/repositories | |
| - name: Ensure availability of Docker | |
| shell: pwsh | |
| run: | | |
| Start-Service docker | |
| 1..3 | ForEach-Object { | |
| try { | |
| docker version | |
| Write-Host "Docker is ready" | |
| exit 0 | |
| } catch { | |
| Write-Host "Waiting for Docker..." | |
| Start-Sleep -Seconds 10 | |
| } | |
| } | |
| - 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 }}" |