-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Compile some modules on Scala3 * Setup matrix build * Reformat with new scalafmt version * Run CI only on pull requests
- Loading branch information
Showing
30 changed files
with
444 additions
and
435 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,31 +1,44 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: ["*"] | ||
pull_request: | ||
branches: ["*"] | ||
|
||
jobs: | ||
build: | ||
name: CI ${{ matrix.java }} ${{matrix.scalaVersion}} (${{matrix.scalaPlatform}}) | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
matrix: | ||
os: [ubuntu-latest] | ||
java: [adopt@1.8, adopt@1.11, 17] | ||
scalaVersion: ["2_12", "2_13", "3_0"] | ||
scalaPlatform: ["jvm", "js", "native"] | ||
exclude: | ||
- scalaVersion: "3_0" | ||
scalaPlatform: "native" | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
BUILD_KEY: ${{matrix.scalaVersion}}-${{matrix.scalaPlatform}} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: coursier/cache-action@v3 | ||
- uses: olafurpg/setup-scala@v10 | ||
- uses: olafurpg/setup-scala@v13 | ||
with: | ||
java-version: adopt@1.8 | ||
|
||
- name: Setup Scala Native environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt install clang | ||
if: matrix.scalaPlatform == 'native' | ||
|
||
- name: Test | ||
run: sbt ci | ||
env: | ||
JAVA_OPTS: "-XX:MaxMetaspaceSize=1g -Xms1g -Xmx4g -Xss2M -XX:+UseG1GC" | ||
JVM_OPTS: "-XX:MaxMetaspaceSize=1g -Xms1g -Xmx4g -Xss2M -XX:+UseG1GC" | ||
# - name: Native link | ||
# run: sbt nativeLink | ||
run: sbt test-$BUILD_KEY codeQuality-$BUILD_KEY | ||
|
||
- name: SBT Plugin test | ||
run: sbt pluginTests-$BUILD_KEY | ||
if: matrix.scalaPlatform == 'jvm' && matrix.scalaVersion == '2_12' | ||
|
||
- name: Check site build | ||
run: sbt buildSite | ||
if: matrix.scalaPlatform == 'jvm' && matrix.scalaVersion == '2_13' |
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,4 +1,4 @@ | ||
version = "2.6.4" | ||
version = "3.0.4" | ||
|
||
align.preset = "more" | ||
|
||
|
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.