-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (38 loc) · 1.08 KB
/
amalthea-ci.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
name: "Amalthea Tests"
on:
push:
branches:
- main
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
name: "Unit Tests on Linux (rust: ${{ matrix.config.rust }})"
strategy:
fail-fast: false
matrix:
config:
- { rust: 'stable' }
- { rust: 'nightly' }
timeout-minutes: 30
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
if: matrix.config.rust == 'nightly'
- name: Setup Build Environment
run: |
sudo apt-get update
sudo apt-get install -y build-essential r-base-dev libsodium-dev
- name: Build
id: amalthea-build
run: |
cargo build --verbose
# Ubuntu runners already have a version of R installed.
# Unit tests "automatically" find and set `R_HOME` if it isn't set by
# calling `R RHOME`. See the testing version of `start_r()` for this.
- name: Run Unit Tests
id: amalthea-test
run: |
cargo test --verbose