Skip to content

Commit c9ec986

Browse files
committed
Add other builds to GitHub Actions
1 parent 2163aa4 commit c9ec986

File tree

3 files changed

+145
-0
lines changed

3 files changed

+145
-0
lines changed

.github/workflows/bench.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Bench CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 1.14.x
8+
- 1.15.x
9+
pull_request:
10+
branches: [ '*' ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: before cache
20+
continue-on-error: true
21+
run: |
22+
rm -fv ~/.ivy2/.sbt.ivy.lock
23+
find ~/.ivy2/cache -name 'ivydata-*.properties' -print -delete
24+
find ~/.sbt -name '*.lock' -print -delete
25+
- uses: actions/cache@v2
26+
with:
27+
path: |
28+
~/.ivy2/cache
29+
~/.coursier/cache/v1
30+
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
31+
restore-keys: |
32+
${{ runner.os }}-sbt-
33+
- name: Set up JDK 1.8
34+
uses: actions/setup-java@v1
35+
with:
36+
java-version: 1.8
37+
- name: Build the benchmark
38+
run: sbt "+bench/jmh:run -p genSize=0 -p seedCount=0 -bs 1 -wi 0 -i 1 -f 0 -t 1 -r 0 org.scalacheck.bench.GenBench"

.github/workflows/examples.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Examples CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 1.14.x
8+
- 1.15.x
9+
pull_request:
10+
branches: [ '*' ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: before cache
20+
continue-on-error: true
21+
run: |
22+
rm -fv ~/.ivy2/.sbt.ivy.lock
23+
find ~/.ivy2/cache -name 'ivydata-*.properties' -print -delete
24+
find ~/.sbt -name '*.lock' -print -delete
25+
- uses: actions/cache@v2
26+
with:
27+
path: |
28+
~/.ivy2/cache
29+
~/.coursier/cache/v1
30+
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
31+
restore-keys: |
32+
${{ runner.os }}-sbt-
33+
- name: Set up JDK 1.8
34+
uses: actions/setup-java@v1
35+
with:
36+
java-version: 1.8
37+
- name: Build the examples
38+
run: |
39+
cd examples
40+
for d in */ ; do cd "$d" && sbt test:compile && cd ../ ; done

.github/workflows/scalanative.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Scala native CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 1.14.x
8+
- 1.15.x
9+
pull_request:
10+
branches: [ '*' ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
scala:
20+
- 2.11.12
21+
jdk:
22+
- 1.8
23+
platform:
24+
- native
25+
scalanative_version:
26+
- 0.3.9
27+
- 0.4.0-M2
28+
sbt_parallel: [true]
29+
workers:
30+
- 1
31+
deploy: [false]
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: before cache
35+
continue-on-error: true
36+
run: |
37+
rm -fv ~/.ivy2/.sbt.ivy.lock
38+
find ~/.ivy2/cache -name 'ivydata-*.properties' -print -delete
39+
find ~/.sbt -name '*.lock' -print -delete
40+
- uses: actions/cache@v2
41+
with:
42+
path: |
43+
~/.ivy2/cache
44+
~/.coursier/cache/v1
45+
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
46+
restore-keys: |
47+
${{ runner.os }}-sbt-
48+
- name: Set up JDK ${{ matrix.jdk }}
49+
uses: actions/setup-java@v1
50+
with:
51+
java-version: ${{ matrix.jdk }}
52+
- name: Install native dependencies
53+
run: sudo apt install clang libunwind-dev libgc-dev libre2-dev
54+
- name: Build with sbt
55+
run: |
56+
./tools/travis-script.sh
57+
./tools/travis-deploy.sh
58+
env:
59+
TRAVIS_BRANCH: ${env:GITHUB_REF}
60+
TRAVIS_COMMIT: ${env:GITHUB_SHA}
61+
TRAVIS_JDK_VERSION: ${{ matrix.java }}
62+
TRAVIS_SCALA_VERSION: ${{ matrix.scala }}
63+
PLATFORM: ${{ matrix.platform }}
64+
SCALANATIVE_VERSION: ${{ matrix.scalanative_version }}
65+
SBT_PARALLEL: ${{ matrix.sbt_parallel }}
66+
WORKERS: ${{ matrix.workers }}
67+
DEPLOY: ${{ matrix.deploy }}

0 commit comments

Comments
 (0)