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 jvm21 and mac-m1 to CI #1274

Merged
merged 10 commits into from Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/tests.yml
Expand Up @@ -2,9 +2,9 @@ name: Tests

on:
push:
branches: [ master, 0.5.x ]
branches: [ master ]
pull_request:
branches: [ master, 0.5.x ]
branches: [ master ]

env:
METARANK_TRACKING: false
Expand All @@ -18,16 +18,23 @@ jobs:
include:
- jvm: 11
platform: ubuntu-22.04
- jvm: 17
architecture: x64
- jvm: 21
platform: ubuntu-22.04
architecture: x64
- jvm: 11
platform: macos-12
architecture: x64
- jvm: 11
platform: macos-14
architecture: aarch64
- jvm: 11
platform: windows-2022
architecture: x64

steps:
- name: install libomp
run: brew install libomp
run: brew install libomp && sudo mkdir -p /usr/local/lib/ && sudo ln -s /opt/homebrew/opt/libomp/lib/libomp.dylib /usr/local/lib/libomp.dylib
if: runner.os == 'macOS'

- uses: actions/checkout@v2
Expand All @@ -47,7 +54,7 @@ jobs:
if: runner.os == 'Linux'

- name: Start Redis on Mac
run: brew install redis && brew services start redis
run: brew install redis sbt && brew services start redis
if: runner.os == 'macOS'

- name: Start Redis on Windows
Expand All @@ -66,10 +73,13 @@ jobs:
with:
path: ~/.sbt ~/.m2 ~/.ivy2 ~/.cache
key: ${{ runner.os }}-build-${{ hashFiles('build.sbt', 'api/build.sbt', 'ingest/build.sbt', 'core/build.sbt', 'project/Deps.scala') }}

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.jvm }}
architecture: ${{ matrix.architecture }}
distribution: 'temurin'

- name: Run tests
run: sbt -mem 3000 test
4 changes: 2 additions & 2 deletions build.sbt
Expand Up @@ -91,11 +91,11 @@ lazy val root = (project in file("."))
val artifactTargetPath = s"/app/${artifact.name}"

new Dockerfile {
from(s"--platform=$PLATFORM ubuntu:jammy-20230308")
from(s"--platform=$PLATFORM ubuntu:jammy-20240227")
runRaw(
List(
"apt-get update",
"apt-get install -y --no-install-recommends openjdk-17-jdk-headless htop procps curl inetutils-ping libgomp1 locales",
"apt-get install -y --no-install-recommends openjdk-21-jdk-headless htop procps curl inetutils-ping libgomp1 locales",
"sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen",
"rm -rf /var/lib/apt/lists/*"
).mkString(" && ")
Expand Down