-
Notifications
You must be signed in to change notification settings - Fork 29
131 lines (131 loc) · 4.15 KB
/
windows.yml
File metadata and controls
131 lines (131 loc) · 4.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
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-2019
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 }}-v5cache-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-2019
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"
installation_test:
name: Installation Test
needs: build
runs-on: windows-2019
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\install-test.ps1"
update_from_v4_test:
name: Migration From v4 Test
needs: build
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-windows-x86_64
path: fluent-package/msi/repositories
- name: Migration From v4 Test
shell: pwsh
run: |
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\update-from-v4-test.ps1"
update_from_v5_test:
name: Update From v5 Test
needs: build
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-windows-x86_64
path: fluent-package/msi/repositories
- name: Update From v5 Test
shell: pwsh
run: |
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\update-from-v5-test.ps1"
serverspec_test:
name: Serverspec Test
needs: build
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: packages-windows-x86_64
path: fluent-package/msi/repositories
- name: Serverspec Test
shell: pwsh
run: |
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\serverspec-test.ps1"