-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to latest versions Address #217 and #213 * Remove bad options for some scala version * Simplify ci-cd * Remove other conflicting scoptions * Better system for the scalaCoptions * More fixes * More fixes * Try again * Add sbt cache
- Loading branch information
Showing
18 changed files
with
183 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: CI | ||
name: CI-CD | ||
on: | ||
push: | ||
branches: [ main ] | ||
tags: [ "*" ] | ||
paths-ignore: | ||
- ".gitignore" | ||
- ".bettercodehub.yml" | ||
|
@@ -26,22 +28,33 @@ on: | |
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
fail-fast: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Setup Scala | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Coursier cache | ||
uses: coursier/cache-action@v5 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache SBT | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '8' | ||
cache: 'sbt' | ||
|
||
- name: clean | ||
run: make deep_clean | ||
|
||
- name: build | ||
run: | | ||
./scripts/spark-cross-compile.sh | ||
- name: test | ||
run: | | ||
./scripts/spark-cross-fmt.sh | ||
|
@@ -50,12 +63,63 @@ jobs: | |
- name: unit-test-coverage | ||
run: make test_coverage | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
|
||
- name: clean-up | ||
run: | | ||
rm -rf "$HOME/.ivy2/local" || true | ||
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true | ||
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true | ||
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true | ||
find $HOME/.sbt | ||
release: | ||
needs: build | ||
strategy: | ||
fail-fast: true | ||
runs-on: ubuntu-latest | ||
env: | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache SBT | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '8' | ||
cache: 'sbt' | ||
|
||
- name: release-staging | ||
run: | | ||
./scripts/spark-cross-publish.sh library true | ||
./scripts/spark-cross-publish.sh testHelper true | ||
./scripts/spark-cross-publish.sh libraryConfigsScallop true | ||
if: startsWith(github.ref, 'refs/tags/') != true && github.ref == 'refs/heads/main' | ||
|
||
- name: release-production | ||
run: | | ||
./scripts/spark-cross-publish.sh library | ||
./scripts/spark-cross-publish.sh testHelper | ||
./scripts/spark-cross-publish.sh libraryConfigsScallop | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
|
||
- name: clean-up | ||
run: | | ||
rm -rf "$HOME/.ivy2/local" || true | ||
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true | ||
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true | ||
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true | ||
find $HOME/.sbt -name "*.lock" -delete || true | ||
find $HOME/.sbt |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.