Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build matrix, and build for sbt 2.0 #260

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 28 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,49 @@ on:
- cron: '0 7 * * 6'
jobs:
build:
strategy:
matrix:
include:
- java: 8
distribution: temurin
sbt: 1
- java: 8
distribution: temurin
sbt: 2
runs-on: ubuntu-latest
env:
# define Java options for both official sbt and sbt-extras
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
JVM_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Scala
uses: olafurpg/setup-scala@v10
uses: actions/setup-java@v4
with:
java-version: "adopt@1.8"
distribution: "${{ matrix.distribution }}"
java-version: "${{ matrix.java }}"
eed3si9n marked this conversation as resolved.
Show resolved Hide resolved
- name: Coursier cache
uses: coursier/cache-action@v5
- name: Build and test
- name: Build and test (sbt 1.x)
if: ${{ matrix.sbt == 1 }}
shell: bash
run: |
gpg --import test-key.gpg
sbt -v clean test scripted
sbt -v ++2.12.x clean test scripted
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: Build and test (sbt 2.x)
if: ${{ matrix.sbt == 2 }}
shell: bash
run: |
gpg --import test-key.gpg
sbt -v ++3.x clean test scripted
rm -rf "$HOME/.ivy2/local" || true
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
eed3si9n marked this conversation as resolved.
Show resolved Hide resolved
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt
Loading