Skip to content

Commit e9c45c9

Browse files
committed
overhaul build process
1 parent 1db0119 commit e9c45c9

File tree

79 files changed

+530
-3541
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+530
-3541
lines changed

.github/pull_request_template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Description & motivation
2+
Please provide some context for your reviewers
3+
- *What does this PR do?*
4+
- *Why does this PR do it?*
5+
6+
# Verification
7+
Please describe how you verified that the change works as intended
8+
- *Did you add a unit test?*

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI pipeline
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**'
7+
push:
8+
branches:
9+
- '*'
10+
tags-ignore:
11+
- 'v[0-9]+.[0-9]+.[0-9]+'
12+
13+
jobs:
14+
ci-pipeline:
15+
runs-on: ubuntu-22.04
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
spark:
20+
# - 2.4.8
21+
# - 3.0.2
22+
# - 3.1.3
23+
- 3.2.4
24+
# - 3.3.2
25+
# - 3.4.1
26+
# - 3.5.0
27+
env:
28+
ENV: 'ci'
29+
SPARK_VERSION: ${{ matrix.spark }}
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
with:
35+
fetch-depth: 0
36+
- name: Build and test
37+
run: |
38+
sbt -java-home "$JAVA_HOME_17_X64" clean +test +publishM2 pyTest -DsparkVersion="$SPARK_VERSION"
39+
- name: Publish Unit test results
40+
uses: mikepenz/action-junit-report@v4
41+
with:
42+
report_paths: '**/target/test-reports/TEST-*.xml'
43+
check_name: Unit test results
44+
if: always()

.github/workflows/publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish pipeline
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
tags:
8+
- 'v[0-9]+.[0-9]+.[0-9]+'
9+
10+
jobs:
11+
publish-artifacts:
12+
runs-on: ubuntu-22.04
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
spark:
17+
# - 2.4.8
18+
# - 3.0.2
19+
# - 3.1.3
20+
- 3.2.4
21+
# - 3.3.2
22+
# - 3.4.1
23+
# - 3.5.0
24+
25+
env:
26+
ENV: 'ci'
27+
SPARK_VERSION: ${{ matrix.spark }}
28+
NEXUS_USER: ${{ secrets.NEXUS_USER }}
29+
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
with:
35+
fetch-depth: 0
36+
- name: Import GPG Key
37+
uses: crazy-max/ghaction-import-gpg@v1
38+
env:
39+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
40+
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
41+
- name: Publish artifacts
42+
run: |
43+
sbt -java-home "$JAVA_HOME_17_X64" clean +publishSigned -DsparkVersion="$SPARK_VERSION"

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release pipeline
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: Semantic version. For example 1.0.0
8+
required: true
9+
10+
jobs:
11+
ci-pipeline:
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- name: Checkout main branch
15+
uses: actions/checkout@v3
16+
- name: Release
17+
run: |
18+
git config --global user.email "[email protected]"
19+
git config --global user.name "GitHub Action"
20+
git tag -a v${{ github.event.inputs.version }} -m "next release"
21+
git push --tags

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# Intellij idea
12
.idea/
3+
.bsp/
24
*.iml
5+
6+
# vscode with metals
7+
.bloop/
8+
.vscode/
9+
.metals/
10+
metals.sbt
11+
12+
# output folders
313
target/
14+
dist/
15+
16+
# MacOS
17+
.DS_Store
18+
19+
# Virtual env
20+
.venv
21+
22+
# Byte-compiled / optimized / DLL files
23+
__pycache__/
24+
*.py[cod]
25+
*$py.class
26+
.pytest_cache/

.mvn/wrapper/MavenWrapperDownloader.java

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

.mvn/wrapper/maven-wrapper.jar

-47.2 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

.sbtopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-J--enable-preview -J--add-modules=jdk.incubator.vector -Dsbt.argsfile=false

.sdkmanrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Enable auto-env through the sdkman_auto_env config
2+
# Add key=value pairs of SDKs to use below
3+
java=17.0.9-amzn
4+
scala=2.12.18
5+
sbt=1.9.8

0 commit comments

Comments
 (0)