-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (50 loc) · 1.53 KB
/
linux.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
name: linux
on: [push]
jobs:
test:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
max-parallel: 4
matrix:
compiler: [dmd, ldc, dmd-beta, ldc-beta]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/cache@v1
with:
path: ~/.dub
key: ${{ runner.os }}-dub-${{ hashFiles('**/dub.json') }}
restore-keys: |
${{ runner.os }}-dub-
- name: download-tf
run: |
mkdir -p download
cd download
wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.15.0.tar.gz
tar xvf libtensorflow-cpu-linux-x86_64-1.15.0.tar.gz
- name: test
run: |
source $(curl https://dlang.org/install.sh | bash -s -- ${{ matrix.compiler }} -a)
LIBRARY_PATH=`pwd`/download/lib
LD_LIBRARY_PATH=`pwd`/download/lib
dub test --parallel -b=unittest-cov
- uses: actions/setup-python@v1
with:
python-version: 3.7
architecture: 'x64'
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-tf2.2.0
- name: examples
run: |
pip install tensorflow==2.2.0
source $(curl https://dlang.org/install.sh | bash -s -- ${{ matrix.compiler }} -a)
LIBRARY_PATH=`pwd`/download/lib
LD_LIBRARY_PATH=`pwd`/download/lib
./run_examples.sh
- name: codecov
if: ${{ matrix.compiler == 'dmd' }}
run: bash <(curl -s https://codecov.io/bash)