Skip to content

Commit ab5b0a7

Browse files
switch to GHA (#200)
1 parent 20cfa1e commit ab5b0a7

2 files changed

Lines changed: 67 additions & 99 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 99 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'release-*'
8+
tags:
9+
- '[0-9]+.[0-9]+.[0-9]+*'
10+
pull_request:
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
env:
18+
JAVA_TOOL_OPTIONS: -Xmx2g
19+
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.parallel=true -Dorg.gradle.workers.max=2
20+
21+
jobs:
22+
23+
build:
24+
runs-on: ubuntu-24.04
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Setup Java and Gradle
29+
id: setup-java-gradle
30+
uses: ConsenSys/github-actions/java-setup-gradle@main
31+
- name: Build
32+
run: ./gradlew --no-daemon --parallel build sourcesJar
33+
- name: Upload test results
34+
uses: actions/upload-artifact@v4
35+
if: always()
36+
with:
37+
name: test-results
38+
path: build/test-results/
39+
if-no-files-found: ignore
40+
retention-days: 7
41+
- name: Upload build artifacts
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: build-libs
45+
path: build/libs/
46+
if-no-files-found: ignore
47+
retention-days: 7
48+
49+
publish:
50+
needs: build
51+
environment: publish
52+
runs-on: ubuntu-24.04
53+
if: |
54+
github.ref == 'refs/heads/master' ||
55+
startsWith(github.ref, 'refs/heads/release-') ||
56+
startsWith(github.ref, 'refs/tags/')
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v4
60+
- name: Setup Java and Gradle
61+
id: setup-java-gradle
62+
uses: ConsenSys/github-actions/java-setup-gradle@main
63+
- name: Publish
64+
env:
65+
CLOUDSMITH_USER: ${{ secrets.CLOUDSMITH_USER }}
66+
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
67+
run: ./gradlew --no-daemon --parallel publish

0 commit comments

Comments
 (0)