@@ -27,66 +27,27 @@ jobs:
2727 build :
2828 needs : define-matrix
2929 name : Build
30- timeout-minutes : 120
30+ uses : ./.github/workflows/_build_rpm_reusable.yml
3131 strategy :
3232 fail-fast : false
3333 matrix : ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
34- runs-on : ubuntu-latest
35- steps :
36- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
37- - name : cache rpm
38- uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
39- id : cache-rpm
40- with :
41- path : |
42- fluent-package/yum/repositories
43- fluent-release/yum/repositories
44- fluent-lts-release/yum/repositories
45- v7-test/fluent-package/yum/repositories
46- key : ${{ runner.os }}-cache-${{ matrix.rake-job }}-${{ hashFiles('**/config.rb', '**/Rakefile', '**/Gemfile*', '**/*.spec.in', 'fluent-package/templates/**', 'fluent-package/yum/**/Dockerfile') }}
47- - uses : ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1.299.0
48- with :
49- ruby-version : ' 3.4'
50- - name : Install dependencies
51- if : ${{ ! steps.cache-rpm.outputs.cache-hit }}
52- run : |
53- gem install serverspec --no-document
54- - name : Build rpm with Docker
55- if : ${{ ! steps.cache-rpm.outputs.cache-hit }}
56- run : |
57- rake yum:build YUM_TARGETS=${{ matrix.rake-job }}
58- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
59- if : ${{ ! steps.cache-rpm.outputs.cache-hit }}
60- with :
61- path : v7-test
62- - name : Build v7 rpm with Docker
63- if : ${{ ! steps.cache-rpm.outputs.cache-hit }}
64- run : |
65- cd v7-test
66- git config user.email "fluentd@googlegroups.com"
67- git config user.name "Fluentd developers"
68- git am fluent-package/bump-version-v7.patch
69- rake yum:build YUM_TARGETS=${{ matrix.rake-job }}
70- - name : Upload fluent-package rpm
71- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
72- with :
73- name : packages-${{ matrix.rake-job }}
74- path : fluent-package/yum/repositories
75- - name : Upload fluent-release rpm
76- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
77- with :
78- name : packages-release-${{ matrix.rake-job }}
79- path : fluent-release/yum/repositories
80- - name : Upload fluent-lts-release rpm
81- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
82- with :
83- name : packages-lts-release-${{ matrix.rake-job }}
84- path : fluent-lts-release/yum/repositories
85- - name : Upload v7 fluent-package rpm
86- uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
87- with :
88- name : v7-packages-${{ matrix.rake-job }}
89- path : v7-test/fluent-package/yum/repositories
34+ with :
35+ rake-job : ${{ matrix.rake-job }}
36+ runs-on : ubuntu-latest
37+ next-major : false
38+ cache-group : v6
39+ build-next :
40+ needs : define-matrix
41+ name : Build next major
42+ uses : ./.github/workflows/_build_rpm_reusable.yml
43+ strategy :
44+ fail-fast : false
45+ matrix : ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
46+ with :
47+ rake-job : ${{ matrix.rake-job }}
48+ runs-on : ubuntu-latest
49+ next-major : true
50+ cache-group : v7
9051 check_package_size :
9152 name : Check Package Size
9253 runs-on : ubuntu-latest
@@ -255,7 +216,7 @@ jobs:
255216
256217 v2test :
257218 name : Test ${{ matrix.label }} ${{ matrix.test }} (CGroup V2)
258- needs : [define-matrix, check_package_size, installation_test, serverspec_test, binstubs_test]
219+ needs : [define-matrix, check_package_size, installation_test, serverspec_test, binstubs_test, build-next ]
259220 runs-on : ubuntu-latest
260221 timeout-minutes : 15
261222 strategy :
0 commit comments