forked from monix/monix.io
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.25 KB
/
build.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
name: build
on:
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: olafurpg/setup-scala@v10
with:
java-version: "[email protected]"
- name: Set up Ruby 2.7.2 (for microsite)
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
- name: Cache Ruby Bundler
uses: actions/cache@v1
with:
path: vendor/bundle
key: v4-${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
v4-${{ runner.os }}-gems-
- name: Cache SBT
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.cache/coursier
key: v4-${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
- name: Install dependencies
run: |
# sudo apt-get install libgsl-dev
# gem update --system
# gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Build
run: |
./scripts/build
env:
VIMEO_API_TOKEN: ${{ secrets.VIMEO_API_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}