Skip to content

Commit f53345c

Browse files
committed
Update ci.yml
1 parent c850af8 commit f53345c

File tree

1 file changed

+9
-63
lines changed

1 file changed

+9
-63
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
# This file was automatically generated by sbt-github-actions using the
2-
# githubWorkflowGenerate task. You should add and commit this file to
3-
# your git repository. It goes without saying that you shouldn't edit
4-
# this file by hand! Instead, if you wish to make changes, you should
5-
# change your sbt build configuration to revise the workflow description
6-
# to meet your needs, then regenerate this file.
7-
8-
name: Continuous Integration
1+
name: Continuous Integration (v3 - master)
92

103
on:
114
pull_request:
12-
branches: ['**']
5+
branches: ['master']
136
push:
14-
branches: ['**']
15-
tags: [v*]
7+
branches: ['master']
168

179
env:
1810
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -24,30 +16,14 @@ jobs:
2416
matrix:
2517
os: [ubuntu-latest]
2618
scala: [2.11.12, 2.12.20, 2.13.15, 3.3.4]
27-
java: [zulu@8, zulu@11, zulu@17, zulu@21]
19+
java: [zulu@17, zulu@21]
2820
runs-on: ${{ matrix.os }}
2921
steps:
3022
- name: Checkout current branch (full)
3123
uses: actions/checkout@v4
3224
with:
3325
fetch-depth: 0
3426

35-
- name: Setup Java (zulu@8)
36-
if: matrix.java == 'zulu@8'
37-
uses: actions/setup-java@v4
38-
with:
39-
distribution: zulu
40-
java-version: 8
41-
cache: sbt
42-
43-
- name: Setup Java (zulu@11)
44-
if: matrix.java == 'zulu@11'
45-
uses: actions/setup-java@v4
46-
with:
47-
distribution: zulu
48-
java-version: 11
49-
cache: sbt
50-
5127
- name: Setup Java (zulu@17)
5228
if: matrix.java == 'zulu@17'
5329
uses: actions/setup-java@v4
@@ -64,11 +40,7 @@ jobs:
6440
java-version: 21
6541
cache: sbt
6642

67-
- name: Check that workflows are up to date
68-
run: sbt -J-Xmx2G '++ ${{ matrix.scala }}' githubWorkflowCheck
69-
70-
- name: Build project
71-
run: sbt -J-Xmx2G '++ ${{ matrix.scala }}' test
43+
- run: sbt -J-Xmx2G '++ ${{ matrix.scala }}' test mimaReportBinaryIssues
7244

7345
- name: Compress target directories
7446
run: tar cf targets.tar target project/target
@@ -82,51 +54,25 @@ jobs:
8254
publish:
8355
name: Publish Artifacts
8456
needs: [build]
85-
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/2.') || startsWith(github.ref, 'refs/tags/v'))
57+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
8658
strategy:
8759
matrix:
8860
os: [ubuntu-latest]
8961
scala: [2.13.15]
90-
java: [zulu@8]
9162
runs-on: ${{ matrix.os }}
9263
steps:
9364
- name: Checkout current branch (full)
9465
uses: actions/checkout@v4
9566
with:
9667
fetch-depth: 0
9768

98-
- name: Setup Java (zulu@8)
99-
if: matrix.java == 'zulu@8'
100-
uses: actions/setup-java@v4
101-
with:
102-
distribution: zulu
103-
java-version: 8
104-
cache: sbt
105-
106-
- name: Setup Java (zulu@11)
107-
if: matrix.java == 'zulu@11'
108-
uses: actions/setup-java@v4
109-
with:
110-
distribution: zulu
111-
java-version: 11
112-
cache: sbt
113-
11469
- name: Setup Java (zulu@17)
115-
if: matrix.java == 'zulu@17'
11670
uses: actions/setup-java@v4
11771
with:
11872
distribution: zulu
11973
java-version: 17
12074
cache: sbt
12175

122-
- name: Setup Java (zulu@21)
123-
if: matrix.java == 'zulu@21'
124-
uses: actions/setup-java@v4
125-
with:
126-
distribution: zulu
127-
java-version: 21
128-
cache: sbt
129-
13076
- name: Download target directories (2.11.12)
13177
uses: actions/download-artifact@v4
13278
with:
@@ -170,7 +116,7 @@ jobs:
170116
- env:
171117
CI_SNAPSHOT_RELEASE: +publishSigned
172118
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
173-
SONATYPE_PASSWORD: ${{ secrets.CI_S01_DEPLOY_PASSWORD }}
174-
SONATYPE_USERNAME: ${{ secrets.CI_S01_DEPLOY_USERNAME }}
119+
SONATYPE_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD3 }}
120+
SONATYPE_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME3 }}
175121
PGP_SECRET: ${{ secrets.PGP_SECRET }}
176-
run: sbt -J-Xmx2G ci-release
122+
run: sbt -J-Xmx2G ci-release

0 commit comments

Comments
 (0)