11name : CI
22on : [push]
3+ env :
4+ JDK_11_VERSION : 11
35jobs :
46 reactive-qute-maven-linux-jvm-build :
5- strategy :
6- matrix :
7- java : [11]
8- os : [ubuntu-latest]
9- runs-on : ${{ matrix.os }}
10- name : reactive-qute maven jvm on ${{ matrix.os }} with java-${{ matrix.java }}
7+ runs-on : ubuntu-latest
8+ name : reactive-qute maven jvm 11
119 steps :
12- - uses : actions/checkout@v1
13- - uses : actions/setup-java@v1
14- with :
15- java-version : ${{ matrix.java }}
16- - uses : actions/cache@v1
17- with :
18- path : ~/.gradle
19- key : ${{ runner.os }}-maven-${{ hashFiles('**/mvnw') }}
20- restore-keys : |
21- ${{ runner.os }}-maven-
10+ - uses : actions/checkout@v3
11+ - uses : actions/cache@v3
12+ id : java-cache
13+ with :
14+ path : |
15+ ./.n
16+ ./.m2
17+ ./.docker
18+ ~/.m2/repository
19+ !~/.m2/repository/daggerok
20+ !~/.m2/repository/com/github/daggerok
21+ key : ${{ runner.os }}-${{ hashFiles('**/pom.xml', '**/gradle.*', '**/*.gradle') }}
22+ - uses : actions/setup-java@v3
23+ with :
24+ distribution : ' temurin'
25+ java-version : ${{ env.JDK_11_VERSION }}
2226 - run : sudo apt-get install --fix-missing httpie
2327 - run : cd $GITHUB_WORKSPACE/reactive-qute && ./mvnw
2428 - run : cd $GITHUB_WORKSPACE/reactive-qute && ./mvnw docker:build docker:start
2529 - run : http get :8080
2630 - run : cd $GITHUB_WORKSPACE/reactive-qute && ./mvnw docker:stop docker:remove
2731 reactive-qute-maven-linux-native-build :
28- strategy :
29- matrix :
30- java : [11]
31- os : [ubuntu-latest]
32- runs-on : ${{ matrix.os }}
33- name : reactive-qute gradle native on ${{ matrix.os }} with java-${{ matrix.java }}
32+ runs-on : ubuntu-latest
33+ name : reactive-qute gradle native jvm 11
3434 steps :
35- - uses : actions/checkout@v1
36- - uses : actions/setup-java@v1
37- with :
38- java-version : ${{ matrix.java }}
39- - uses : actions/cache@v1
40- with :
41- path : ~/.gradle
42- key : ${{ runner.os }}-maven-${{ hashFiles('**/mvnw') }}
43- restore-keys : |
44- ${{ runner.os }}-maven-
35+ - uses : actions/checkout@v3
36+ - uses : actions/cache@v3
37+ id : java-cache
38+ with :
39+ path : |
40+ ./.n
41+ ./.m2
42+ ./.docker
43+ ~/.m2/repository
44+ !~/.m2/repository/daggerok
45+ !~/.m2/repository/com/github/daggerok
46+ key : ${{ runner.os }}-${{ hashFiles('**/pom.xml', '**/gradle.*', '**/*.gradle') }}
47+ - uses : actions/setup-java@v3
48+ with :
49+ distribution : ' temurin'
50+ java-version : ${{ env.JDK_11_VERSION }}
4551 - run : sudo apt-get install --fix-missing httpie
4652 - run : cd $GITHUB_WORKSPACE/reactive-qute && ./mvnw -Pnative -Dquarkus.native.container-build=true
4753 - run : cd $GITHUB_WORKSPACE/reactive-qute && ./mvnw -Pnative docker:build docker:start
4854 - run : http get :8080
4955 - run : cd $GITHUB_WORKSPACE/reactive-qute && ./mvnw docker:stop docker:remove
5056 reactive-qute-gradle-linux-jvm-build :
51- strategy :
52- matrix :
53- java : [11]
54- os : [ubuntu-latest]
55- runs-on : ${{ matrix.os }}
56- name : reactive-qute gradle jvm on ${{ matrix.os }} with java-${{ matrix.java }}
57+ runs-on : ubuntu-latest
58+ name : reactive-qute gradle jvm 11
5759 steps :
58- - uses : actions/checkout@v1
59- - uses : actions/setup-java@v1
60- with :
61- java-version : ${{ matrix.java }}
62- - uses : actions/cache@v1
63- with :
64- path : ~/.gradle
65- key : ${{ runner.os }}-gradle-${{ hashFiles('**/gradlew') }}
66- restore-keys : |
67- ${{ runner.os }}-gradle-
60+ - uses : actions/checkout@v3
61+ - uses : actions/cache@v3
62+ id : java-cache
63+ with :
64+ path : |
65+ ./.n
66+ ./.m2
67+ ./.docker
68+ ~/.m2/repository
69+ !~/.m2/repository/daggerok
70+ !~/.m2/repository/com/github/daggerok
71+ key : ${{ runner.os }}-${{ hashFiles('**/pom.xml', '**/gradle.*', '**/*.gradle') }}
72+ - uses : actions/setup-java@v3
73+ with :
74+ distribution : ' temurin'
75+ java-version : ${{ env.JDK_11_VERSION }}
6876 - run : sudo apt-get install --fix-missing httpie
6977 - run : cd $GITHUB_WORKSPACE/reactive-qute && ./gradlew build -x test
7078 - run : cd $GITHUB_WORKSPACE/reactive-qute && ( ./gradlew quarkusDev || true ) &
@@ -77,23 +85,25 @@ jobs:
7785 http get :8080
7886 ./gradlew dockerStop
7987 reactive-qute-gradle-linux-native-build :
80- strategy :
81- matrix :
82- java : [11]
83- os : [ubuntu-latest]
84- runs-on : ${{ matrix.os }}
85- name : reactive-qute gradle native on ${{ matrix.os }} with java-${{ matrix.java }}
88+ runs-on : ubuntu-latest
89+ name : reactive-qute gradle native jvm 11
8690 steps :
87- - uses : actions/checkout@v1
88- - uses : actions/setup-java@v1
89- with :
90- java-version : ${{ matrix.java }}
91- - uses : actions/cache@v1
92- with :
93- path : ~/.gradle
94- key : ${{ runner.os }}-gradle-${{ hashFiles('**/gradlew') }}
95- restore-keys : |
96- ${{ runner.os }}-gradle-
91+ - uses : actions/checkout@v3
92+ - uses : actions/cache@v3
93+ id : java-cache
94+ with :
95+ path : |
96+ ./.n
97+ ./.m2
98+ ./.docker
99+ ~/.m2/repository
100+ !~/.m2/repository/daggerok
101+ !~/.m2/repository/com/github/daggerok
102+ key : ${{ runner.os }}-${{ hashFiles('**/pom.xml', '**/gradle.*', '**/*.gradle') }}
103+ - uses : actions/setup-java@v3
104+ with :
105+ distribution : ' temurin'
106+ java-version : ${{ env.JDK_11_VERSION }}
97107 - run : sudo apt-get install --fix-missing httpie
98108 - run : cd $GITHUB_WORKSPACE/reactive-qute && ./gradlew assemble
99109 - run : cd $GITHUB_WORKSPACE/reactive-qute && ( ./gradlew quarkusDev || true ) &
@@ -106,97 +116,81 @@ jobs:
106116 sleep 5s
107117 http get :8080
108118 QUARKUS_NATIVE=true ./gradlew dockerStop
109-
110119 build-linux :
111- strategy :
112- matrix :
113- os : [ubuntu-latest]
114- java : [11]
115- runs-on : ${{ matrix.os }}
116- name : qute-mvc on ${{ matrix.os }} with java-${{ matrix.java }}
120+ runs-on : ubuntu-latest
121+ name : qute-mvc jvm 11
117122 steps :
118- - name : Git clone
119- uses : actions/checkout@v1
120- - name : Setup java
121- uses : actions/setup-java@v1
122- with :
123- java-version : ${{ matrix.java }}
124- - name : Set up maven
125- uses : stCarolas/setup-maven@v3
126- with :
127- maven-version : 3.6.3
128- - name : Cache maven
129- uses : actions/cache@v1
130- with :
131- path : ~/.m2/repository
132- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
133- restore-keys : |
134- ${{ runner.os }}-maven-
135- - name : Maven build
136- run : ./mvnw -f qute-mvc
137- - name : Test qute-mvc
138- run : |
123+ - uses : actions/checkout@v3
124+ - uses : actions/cache@v3
125+ id : java-cache
126+ with :
127+ path : |
128+ ./.n
129+ ./.m2
130+ ./.docker
131+ ~/.m2/repository
132+ !~/.m2/repository/daggerok
133+ !~/.m2/repository/com/github/daggerok
134+ key : ${{ runner.os }}-${{ hashFiles('**/pom.xml', '**/gradle.*', '**/*.gradle') }}
135+ - uses : actions/setup-java@v3
136+ with :
137+ distribution : ' temurin'
138+ java-version : ${{ env.JDK_11_VERSION }}
139+ - run : ./mvnw -f qute-mvc
140+ - run : |
139141 java -jar $GITHUB_WORKSPACE/qute-mvc/target/*-runner.jar &
140142 sudo apt-get update -yqq
141143 sudo apt-get install -yqq httpie
142144 http get :8080/api/v1/my-resource
143- build-macOS :
144- strategy :
145- matrix :
146- os : [macos-latest]
147- java : [11]
148- runs-on : ${{ matrix.os }}
149- name : qute-mvc on ${{ matrix.os }} with java-${{ matrix.java }}
150- steps :
151- - name : Git clone
152- uses : actions/checkout@v1
153- - name : Setup java
154- uses : actions/setup-java@v1
155- with :
156- java-version : ${{ matrix.java }}
157- - name : Set up maven
158- uses : stCarolas/setup-maven@v3
159- with :
160- maven-version : 3.6.3
161- - name : Cache maven
162- uses : actions/cache@v1
163- with :
164- path : ~/.m2/repository
165- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
166- restore-keys : |
167- ${{ runner.os }}-maven-
168- - name : Maven build
169- run : ./mvnw -f qute-mvc
170- - name : Test qute-mvc
171- run : |
172- java -jar $GITHUB_WORKSPACE/qute-mvc/target/*-runner.jar &
173- brew reinstall httpie
174- http get :8080/api/v1/my-resource
175- build-windows :
176- strategy :
177- matrix :
178- java : [11]
179- os : [windows-latest]
180- runs-on : ${{ matrix.os }}
181- name : qute-mvc on ${{ matrix.os }} with java-${{ matrix.java }}
182- steps :
183- - name : Git clone
184- uses : actions/checkout@v1
185- - name : Setup java
186- uses : actions/setup-java@v1
187- with :
188- java-version : ${{ matrix.java }}
189- - name : Set up maven
190- uses : stCarolas/setup-maven@v3
191- with :
192- maven-version : 3.6.3
193- - name : Run maven build
194- shell : cmd
195- run : call mvnw.cmd -Dfile.encoding="UTF-8" -f %GITHUB_WORKSPACE%\qute-mvc
196- - name : Cache maven
197- uses : actions/cache@v1
198- with :
199- path : ~/.m2/repository
200- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
201- restore-keys : |
202- ${{ runner.os }}-maven-
145+ # build-macOS: # TODO: FIXME:
146+ # runs-on: ubuntu-latest
147+ # name: qute-mvc jvm 11
148+ # steps:
149+ # - uses: actions/checkout@v3
150+ # - uses: actions/cache@v3
151+ # id: java-cache
152+ # with:
153+ # path: |
154+ # ./.n
155+ # ./.m2
156+ # ./.docker
157+ # ~/.m2/repository
158+ # !~/.m2/repository/daggerok
159+ # !~/.m2/repository/com/github/daggerok
160+ # key: ${{ runner.os }}-${{ hashFiles('**/pom.xml', '**/gradle.*', '**/*.gradle') }}
161+ # - uses: actions/setup-java@v3
162+ # with:
163+ # distribution: 'temurin'
164+ # java-version: ${{ env.JDK_11_VERSION }}
165+ # - run: ./mvnw -f qute-mvc
166+ # - run: |
167+ # java -jar $GITHUB_WORKSPACE/qute-mvc/target/*-runner.jar &
168+ # brew reinstall httpie
169+ # http get :8080/api/v1/my-resource
170+ # build-windows: # TODO: FIXME:
171+ # runs-on: ubuntu-latest
172+ # name: qute-mvc jvm 11
173+ # steps:
174+ # - name: Git clone
175+ # uses: actions/checkout@v3
176+ # - uses: actions/cache@v3
177+ # id: java-cache
178+ # with:
179+ # path: |
180+ # ./.n
181+ # ./.m2
182+ # ./.docker
183+ # ~/.m2/repository
184+ # !~/.m2/repository/daggerok
185+ # !~/.m2/repository/com/github/daggerok
186+ # key: ${{ runner.os }}-${{ hashFiles('**/pom.xml', '**/gradle.*', '**/*.gradle') }}
187+ # - uses: actions/setup-java@v3
188+ # with:
189+ # distribution: 'temurin'
190+ # java-version: ${{ env.JDK_11_VERSION }}
191+ # - name: Set up maven
192+ # uses: stCarolas/setup-maven@v3
193+ # with:
194+ # maven-version: 3.6.3
195+ # - shell: cmd
196+ # run: call mvnw.cmd -Dfile.encoding="UTF-8" -f %GITHUB_WORKSPACE%\qute-mvc
0 commit comments