Skip to content

Commit c87c302

Browse files
Build for jdk8 in GH Action (#118)
* build in GH Action * update workflows
1 parent df9ec42 commit c87c302

File tree

4 files changed

+39
-3
lines changed

4 files changed

+39
-3
lines changed

.github/workflows/cd.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
BuildJAR:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
java: [ '8' ]
15+
steps:
16+
- name: Setup Java JDK
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: 'temurin'
20+
java-version: ${{ matrix.java }}
21+
id: java
22+
- name: Setup Go environment
23+
uses: actions/setup-go@v2
24+
with:
25+
go-version: ^1.17
26+
id: go
27+
- name: Setup Bazelisk
28+
run: go install github.com/bazelbuild/bazelisk@latest && export PATH=$PATH:$(go env GOPATH)/bin
29+
- uses: actions/checkout@v2
30+
- name: Build deployable JAR
31+
run: USE_BAZEL_VERSION=last_downstream_green ~/go/bin/bazelisk build //src/main/java/com/bazel_diff:bazel-diff_deploy.jar
32+
- uses: actions/upload-artifact@v3
33+
with:
34+
name: bazel-diff_deploy.jar
35+
path: bazel-bin/src/main/java/com/bazel_diff/bazel-diff_deploy.jar
36+
if-no-files-found: error

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build:
10+
Tests:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:

.github/workflows/integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- cron: "0 */12 * * *"
1010

1111
jobs:
12-
build:
12+
Integration:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:

.github/workflows/integration_external_target.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- cron: "0 */12 * * *"
1010

1111
jobs:
12-
build:
12+
IntegrationExternalTarget:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:

0 commit comments

Comments
 (0)