-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (62 loc) · 1.91 KB
/
scala.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Scala CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: write
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout libuv (for Windows)
if: matrix.os == 'windows-latest'
uses: actions/checkout@v3
with:
repository: libuv/libuv
path: libuv-build
ref: v1.43.0
- name: Install/build libuv
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install --yes libuv1-dev
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install libuv
elif [ "$RUNNER_OS" == "Windows" ]; then
bash build-windows.sh
else
echo "Unknown OS"
exit 1
fi
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: 'sbt'
- name: Run tests
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
PATH=libuv-build/build/Debug:$PATH sbt "$SBT_NATIVE_COMPILE $SBT_NATIVE_LINK show nativeCompileOptions ; show nativeLinkingOptions ; test"
else
sbt "$SBT_NATIVE_COMPILE $SBT_NATIVE_LINK show nativeCompileOptions ; show nativeLinkingOptions ; test"
fi
shell: bash
dependency-graph:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository
- name: Upload dependency graph
uses: scalacenter/sbt-dependency-submission@v2