Skip to content

Commit f1053a7

Browse files
committed
Turn build workflow to a matrix build
1 parent 0c87f8e commit f1053a7

1 file changed

Lines changed: 9 additions & 41 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Build
22
on: [push, pull_request, workflow_dispatch]
33
jobs:
4-
linux:
5-
runs-on: ubuntu-latest
4+
build:
5+
runs-on: ${{ matrix.config.os }}
6+
strategy:
7+
matrix:
8+
config:
9+
- {os: ubuntu-latest, params: "-PtestAllSupportedGradleVersions=true -PtestProxyIntegrationTests=false" }
10+
- {os: windows-latest, params: "-PtestProxyIntegrationTests=false" }
11+
- {os: macos-latest, params: "-PtestProxyIntegrationTests=false" }
612
steps:
713
- name: Checkout Source Code
814
uses: actions/checkout@v2
@@ -19,42 +25,4 @@ jobs:
1925
- name: Gradle Version
2026
run: ./gradlew --version
2127
- name: Build
22-
run: ./gradlew build -PtestAllSupportedGradleVersions=true -PtestProxyIntegrationTests=false
23-
windows:
24-
runs-on: windows-latest
25-
steps:
26-
- name: Checkout Source Code
27-
uses: actions/checkout@v2
28-
- name: Install Java
29-
uses: actions/setup-java@v1
30-
with:
31-
java-version: 8
32-
- name: Install Node.js
33-
uses: actions/setup-node@v2
34-
with:
35-
node-version: 16
36-
- name: Install yarn
37-
run: npm install -g yarn@1.22.17
38-
- name: Gradle Version
39-
run: ./gradlew --version
40-
- name: Build
41-
run: ./gradlew build -PtestProxyIntegrationTests=false
42-
macos:
43-
runs-on: macos-latest
44-
steps:
45-
- name: Checkout Source Code
46-
uses: actions/checkout@v2
47-
- name: Install Java
48-
uses: actions/setup-java@v1
49-
with:
50-
java-version: 8
51-
- name: Install Node.js
52-
uses: actions/setup-node@v2
53-
with:
54-
node-version: 16
55-
- name: Install yarn
56-
run: npm install -g yarn@1.22.17
57-
- name: Gradle Version
58-
run: ./gradlew --version
59-
- name: Build
60-
run: ./gradlew build -PtestProxyIntegrationTests=false
28+
run: ./gradlew build ${{ matrix.config.params }}

0 commit comments

Comments
 (0)