-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (44 loc) · 1.39 KB
/
Copy pathall.yml
File metadata and controls
49 lines (44 loc) · 1.39 KB
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
name: unit-tests
on: push
jobs:
build:
strategy:
matrix:
os: [ubuntu-18.04, macos-10.15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: make
run: |
python3 -m pip install --upgrade pip
python3 -m pip install cffi
make world
- name: run golang tests in Linux
if: runner.os == 'Linux'
run: |
cd /tmp
curl -L -o go1.18.1.linux-amd64.tar.gz https://go.dev/dl/go1.18.1.linux-amd64.tar.gz
tar xzf go1.18.1.linux-amd64.tar.gz
cd -
cd go
/tmp/go/bin/go test
- name: run golang tests in macOS
if: runner.os == 'macOS'
run: |
cd go
/Users/runner/hostedtoolcache/go/1.18.*/x64/bin/go version
/Users/runner/hostedtoolcache/go/1.18.*/x64/bin/go test
- name: run C tests
run: |
c/extras/test/paths.exe
c/extras/test/static.exe
c/lib/test/peel.exe
- name: run C++ tests
run: |
export LD_LIBRARY_PATH="${JAVA_HOME}/jre/lib/amd64/server:${JAVA_HOME}/lib/server:${JAVA_HOME}/jre/lib/server/:${LD_LIBRARY_PATH}"
export DYLD_LIBRARY_PATH="${JAVA_HOME}/jre/lib/amd64/server:${JAVA_HOME}/lib/server:${JAVA_HOME}/jre/lib/server/:${DYLD_LIBRARY_PATH}"
cpp/extras/test/block.exe
- name: run Java tests
run: mvn -f ./java/ test