Skip to content

Update sbt to 1.9.6 (#764) #941

Update sbt to 1.9.6 (#764)

Update sbt to 1.9.6 (#764) #941

Workflow file for this run

name: CI
on:
pull_request:
branches:
- '*'
push:
branches:
- master
jobs:
format:
name: Format
runs-on: ubuntu-22.04
steps:
- name: Branch Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Java And Sbt
uses: olafurpg/setup-scala@v13
with:
java-version: [email protected]
- name: Cache
uses: actions/cache@v3
with:
path: |
$HOME/.cache/coursier
$HOME/.ivy2/cache
$HOME/.sbt/boot/
$HOME/.sbt
lib_managed
target
project/target
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Check with Scalafmt
run: sbt ++2.13.12 fmtCheck
build-bench:
name: Compile benchmarks
needs: format
runs-on: ubuntu-22.04
steps:
- name: Branch Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Java And Sbt
uses: olafurpg/setup-scala@v13
with:
java-version: [email protected]
- name: Cache
uses: actions/cache@v3
with:
path: |
$HOME/.cache/coursier
$HOME/.ivy2/cache
$HOME/.sbt/boot/
$HOME/.sbt
lib_managed
target
project/target
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Compile benchmarks
run: sbt ++2.13.12 benchBuild
build:
name: Test
needs: format
strategy:
matrix:
scala:
- 2.12.18
- 2.13.12
java:
- [email protected]
- [email protected]
os:
- ubuntu-22.04
runs-on: ${{ matrix.os }}
steps:
- name: Branch Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Java And Sbt
uses: olafurpg/setup-scala@v13
with:
java-version: ${{ matrix.java }}
- name: Cache
uses: actions/cache@v3
with:
path: |
$HOME/.cache/coursier
$HOME/.ivy2/cache
$HOME/.sbt/boot/
$HOME/.sbt
lib_managed
target
project/target
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Run redis and KeyDb in containers
run: |
docker run -p 6379:6379 -d redis:alpine
docker run -p 6380:6379 -d eqalpha/keydb
- name: Test (${{ matrix.scala }}, ${{ matrix.java }})
run: SBT_OPTS="-Xms4096M -Xmx4096M -XX:MaxMetaspaceSize=2048M" sbt ++${{matrix.scala}} fullTest
publish_212:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
name: Publish Snapshot 2.12
needs: [ build, build-bench ]
runs-on: ubuntu-22.04
steps:
- name: Branch Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Java And Sbt
uses: olafurpg/setup-scala@v13
with:
java-version: [email protected]
- name: Cache
uses: actions/cache@v3
with:
path: |
$HOME/.cache/coursier
$HOME/.ivy2/cache
$HOME/.sbt/boot/
$HOME/.sbt
lib_managed
target
project/target
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Publish Snapshot for Scala 2.12
run: CI_SNAPSHOT_RELEASE=publish sbt ++2.12.18 releaseIt
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
publish_213:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
name: Publish Snapshot 2.13
needs: publish_212
runs-on: ubuntu-22.04
steps:
- name: Branch Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Java And Sbt
uses: olafurpg/setup-scala@v13
with:
java-version: [email protected]
- name: Cache
uses: actions/cache@v3
with:
path: |
$HOME/.cache/coursier
$HOME/.ivy2/cache
$HOME/.sbt/boot/
$HOME/.sbt
lib_managed
target
project/target
key: ${{ runner.os }}-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Publish Snapshot for Scala 2.13
run: CI_SNAPSHOT_RELEASE=publish sbt ++2.13.12 releaseIt
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}