Skip to content

Commit 393ad0a

Browse files
authored
Create build.yml
1 parent c87d6c9 commit 393ad0a

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build
2+
3+
on: [push]
4+
5+
jobs:
6+
linux:
7+
name: 'Linux'
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up JDK 1.11
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 11
16+
- name: Grant execute permission for gradlew
17+
run: chmod +x gradlew
18+
- name: Build with Gradle
19+
run: ./gradlew build
20+
21+
windows:
22+
name: 'Windows'
23+
runs-on: windows-latest
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up JDK 1.11
28+
uses: actions/setup-java@v1
29+
with:
30+
java-version: 11
31+
- name: Build with Gradle
32+
run: .\gradlew.bat build
33+
34+
mac:
35+
name: 'Mac OS'
36+
runs-on: macos-latest
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: Set up JDK 1.11
41+
uses: actions/setup-java@v1
42+
with:
43+
java-version: 11
44+
- name: Grant execute permission for gradlew
45+
run: chmod +x gradlew
46+
- name: Build with Gradle
47+
run: ./gradlew build

0 commit comments

Comments
 (0)