-
Notifications
You must be signed in to change notification settings - Fork 12
158 lines (158 loc) · 5.73 KB
/
daily.yml
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
name: "Daily Build"
on:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 20 * * *'
jobs:
linux-build-released-jvm:
name: Linux - JVM build - released Quarkus
runs-on: ubuntu-latest
env:
TESTCONTAINERS_RYUK_DISABLED: true
strategy:
matrix:
java: [ 17 ]
steps:
- uses: actions/checkout@v3
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Run Test Suite
run: mvn -s .github/mvn-settings.xml clean test -Dts.limit-extensions=200 -Dts.extensions-in-groups-of=2
- name: Zip Artifacts
if: failure()
run: |
zip -r artifacts-linux-jvm${{ matrix.java }}.zip . -i '**/*-reports/*.xml' '**/*.log'
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v1
with:
name: ci-artifacts
path: artifacts-linux-jvm${{ matrix.java }}.zip
linux-build-released-native:
name: Linux - Native build - released Quarkus
runs-on: ubuntu-latest
env:
TESTCONTAINERS_RYUK_DISABLED: true
strategy:
matrix:
java: [ 17 ]
graalvm-version: ["mandrel-latest"]
steps:
- uses: actions/checkout@v3
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Setup GraalVM
id: setup-graalvm
uses: graalvm/setup-graalvm@v1
with:
version: ${{ matrix.graalvm-version }}
java-version: ${{ matrix.java }}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Test Suite
run: mvn -e -s .github/mvn-settings.xml clean test -Dts.limit-extensions=20 -Dts.extensions-in-groups-of=5 -Dts.verify-native-mode=true -Ddisable-parallel
- name: Zip Artifacts
if: failure()
run: |
zip -r artifacts-linux-native${{ matrix.java }}.zip . -i '**/*-reports/*.xml' '**/*.log'
- name: Archive artifacts
if: failure()
uses: actions/upload-artifact@v1
with:
name: ci-artifacts
path: artifacts-linux-native${{ matrix.java }}.zip
windows-build-released-jvm:
name: Windows - JVM build - released Quarkus
runs-on: windows-latest
env:
TESTCONTAINERS_RYUK_DISABLED: true
strategy:
matrix:
java: [ 17 ]
steps:
- uses: actions/checkout@v3
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Run Test Suite
shell: bash
run: mvn -s .github/mvn-settings.xml clean test -Dts.limit-extensions=200 -Dts.extensions-in-groups-of=2 -Dformat.skip=true
- name: Zip Artifacts
if: failure()
shell: bash
run: |
# Disambiguate windows find from cygwin find
/usr/bin/find . -print | grep -e "-reports" -e ".log" | grep -v "git" | tar -czf artifacts-windows-jvm${{ matrix.java }}.tar -T -
- name: Archive artifacts
uses: actions/upload-artifact@v1
if: failure()
with:
name: ci-artifacts
path: artifacts-windows-jvm${{ matrix.java }}.tar
windows-build-released-native:
name: Windows - Native build - released Quarkus
runs-on: windows-latest
env:
TESTCONTAINERS_RYUK_DISABLED: true
strategy:
matrix:
java: [ 17 ]
graalvm-version: ["mandrel-latest"]
steps:
- uses: actions/checkout@v3
- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Install cl.exe
uses: ilammy/msvc-dev-cmd@v1
- uses: microsoft/setup-msbuild@v1
- name: Setup GraalVM
id: setup-graalvm
uses: graalvm/setup-graalvm@v1
with:
version: ${{ matrix.graalvm-version }}
java-version: ${{ matrix.java }}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure Pagefile
# Increased the page-file size due to memory-consumption of native-image command
# For details see https://github.com/actions/virtual-environments/issues/785
uses: al-cheb/[email protected]
- name: Run Test Suite
shell: cmd
# Windows have path limits and thus ts.extensions-in-groups-of is set to 1, generated app name is based on the extensions names
# Otherwise native-image command throws errors
# [ERROR] ... CreateProcess error=267, The directory name is invalid
# Fatal error: java.lang.RuntimeException: There was an error linking the native image: Linker command exited with 2
run: mvn -e -s .github/mvn-settings.xml clean test -Dts.limit-extensions=20 -Dts.extensions-in-groups-of=1 -Dts.verify-native-mode=true -Dformat.skip=true -Ddisable-parallel
- name: Zip Artifacts
if: failure()
shell: bash
run: |
# Disambiguate windows find from cygwin find
/usr/bin/find . -print | grep -e "-reports" -e ".log" | grep -v "git" | tar -czf artifacts-windows-native${{ matrix.java }}.tar -T -
- name: Archive artifacts
uses: actions/upload-artifact@v1
if: failure()
with:
name: ci-artifacts
path: artifacts-windows-native${{ matrix.java }}.tar