Skip to content

Commit 6b787b4

Browse files
committed
Migrate to GH actions (#291)
* Migrate to GH actions Signed-off-by: Pavol Loffay <[email protected]> * Action Signed-off-by: Pavol Loffay <[email protected]> * Add muzzle Signed-off-by: Pavol Loffay <[email protected]> * rename Signed-off-by: Pavol Loffay <[email protected]> * muzzle Signed-off-by: Pavol Loffay <[email protected]> * Fix Signed-off-by: Pavol Loffay <[email protected]> * fix Signed-off-by: Pavol Loffay <[email protected]> * Disable Signed-off-by: Pavol Loffay <[email protected]>
1 parent dd5df41 commit 6b787b4

File tree

4 files changed

+157
-23
lines changed

4 files changed

+157
-23
lines changed

.circleci/config.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -111,24 +111,24 @@ workflows:
111111
filters:
112112
tags:
113113
only: /.*/
114-
- release-maven-publish:
115-
context:
116-
- hypertrace-publishing
117-
- maven-central-publish
118-
requires:
119-
- build
120-
- muzzle
121-
filters:
122-
branches:
123-
ignore: /.*/
124-
tags:
125-
only: /^[0-9]+\.[0-9]+\.[0-9]+/
126-
- release-github-publish:
127-
context: hypertrace-publishing
128-
requires:
129-
- release-maven-publish
130-
filters:
131-
branches:
132-
ignore: /.*/
133-
tags:
134-
only: /^[0-9]+\.[0-9]+\.[0-9]+/
114+
# - release-maven-publish:
115+
# context:
116+
# - hypertrace-publishing
117+
# - maven-central-publish
118+
# requires:
119+
# - build
120+
# - muzzle
121+
# filters:
122+
# branches:
123+
# ignore: /.*/
124+
# tags:
125+
# only: /^[0-9]+\.[0-9]+\.[0-9]+/
126+
# - release-github-publish:
127+
# context: hypertrace-publishing
128+
# requires:
129+
# - release-maven-publish
130+
# filters:
131+
# branches:
132+
# ignore: /.*/
133+
# tags:
134+
# only: /^[0-9]+\.[0-9]+\.[0-9]+/

.github/workflows/build.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- '**/README.md'
8+
- 'smoke-tests/matrix'
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-20.04
14+
steps:
15+
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
16+
- name: Check out code
17+
uses: actions/[email protected]
18+
with:
19+
fetch-depth: 0
20+
submodules: true
21+
22+
- name: create checksum file
23+
uses: hypertrace/github-actions/checksum@main
24+
25+
- name: Cache packages
26+
id: cache-packages
27+
uses: actions/cache@v2
28+
with:
29+
path: ~/.gradle
30+
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
31+
restore-keys: |
32+
gradle-packages-${{ runner.os }}-${{ github.job }}
33+
gradle-packages-${{ runner.os }}
34+
35+
- name: build
36+
run: make build
37+
env:
38+
JVM_OPTS: -Xmx1g
39+
TERM: dumb
40+
muzzle:
41+
runs-on: ubuntu-20.04
42+
steps:
43+
- name: Check out code
44+
uses: actions/[email protected]
45+
with:
46+
fetch-depth: 0
47+
submodules: true
48+
49+
- name: create checksum file
50+
uses: hypertrace/github-actions/checksum@main
51+
52+
- name: Cache packages
53+
id: cache-packages
54+
uses: actions/cache@v2
55+
with:
56+
path: ~/.gradle
57+
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
58+
restore-keys: |
59+
gradle-packages-${{ runner.os }}-${{ github.job }}
60+
gradle-packages-${{ runner.os }}
61+
62+
- name: muzzle
63+
run: make muzzle
64+
env:
65+
JVM_OPTS: -Xmx1g
66+
TERM: dumb

.github/workflows/release.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: release
2+
on:
3+
create:
4+
tags:
5+
- ^[0-9]+\.[0-9]+\.[0-9]+
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
12+
- name: Check out code
13+
uses: actions/[email protected]
14+
with:
15+
fetch-depth: 0
16+
submodules: true
17+
18+
- name: create checksum file
19+
uses: hypertrace/github-actions/checksum@main
20+
21+
- name: Cache packages
22+
id: cache-packages
23+
uses: actions/cache@v2
24+
with:
25+
path: ~/.gradle
26+
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
27+
restore-keys: |
28+
gradle-packages-${{ runner.os }}-${{ github.job }}
29+
gradle-packages-${{ runner.os }}
30+
31+
# - name: build
32+
# run: make build
33+
# env:
34+
# JVM_OPTS: -Xmx1g
35+
# TERM: dumb
36+
37+
# - name: Set signing key
38+
# run: echo "ORG_GRADLE_PROJECT_signingKey=$(echo $SIGNING_KEY | base64 -d)" >> $GITHUB_ENV
39+
# env:
40+
# SIGNING_KEY: ${{ secrets.MAVEN_SIGNING_KEY }}
41+
#
42+
# - name: Print signing key
43+
# run: echo $ORG_GRADLE_PROJECT_signingKey
44+
45+
# - name: publish to maven
46+
# run: ./gradlew publish closeAndReleaseRepository
47+
# env:
48+
# JVM_OPTS: -Xmx1g
49+
# TERM: dumb
50+
# ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.ORG_GRADLE_PROJECT_OSSRHUSERNAME }}
51+
# ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.ORG_GRADLE_PROJECT_OSSRHPASSWORD }}
52+
# ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
53+
# ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
54+
# SIGNING_KEY: ${{ secrets.MAVEN_SIGNING_KEY }}
55+
# ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_SIGNING_KEY }}
56+
#
57+
# - name: Set release version env
58+
# run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
59+
#
60+
# - name: List build artifacts
61+
# run: ls ./javaagent/build/libs
62+
#
63+
# - name: Create github release
64+
# uses: fnkr/github-action-ghr@v1
65+
# if: startsWith(github.ref, 'refs/tags/')
66+
# env:
67+
# GHR_PATH: ./javaagent/build/libs
68+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr-test.yml renamed to .github/workflows/smoke-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test
1+
name: smoke-test
22
on:
33
push:
44
branches:
@@ -36,4 +36,4 @@ jobs:
3636
run: make smoke-test
3737
env:
3838
JVM_OPTS: -Xmx1g
39-
TERM: dumb
39+
TERM: dumb

0 commit comments

Comments
 (0)