Skip to content

Commit

Permalink
split ci and remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
ShigekiKarita committed May 9, 2020
1 parent 9953dc5 commit 9eb9cf7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 104 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

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@v1

- 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
- name: codecov
if: ${{ matrix.compiler == 'dmd' }}
run: bash <(curl -s https://codecov.io/bash)
39 changes: 1 addition & 38 deletions .github/workflows/ci.yml → .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,7 @@ name: CI
on: [push]

jobs:
test-linux:

runs-on: ubuntu-18.04

strategy:
fail-fast: false
max-parallel: 4
matrix:
compiler: [dmd, ldc, dmd-beta, ldc-beta]

steps:
- uses: actions/checkout@v1
# with:
# submodules: true

- 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
- name: codecov
if: ${{ matrix.compiler == 'dmd' }}
run: bash <(curl -s https://codecov.io/bash)


test-windows:

test:
runs-on: windows-2019

strategy:
Expand All @@ -49,8 +14,6 @@ jobs:

steps:
- uses: actions/checkout@v1
# with:
# submodules: true

- name: download-tf
run: |
Expand Down
46 changes: 0 additions & 46 deletions Makefile

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# tfd: tensorflow for D

![CI](https://github.com/ShigekiKarita/tfd/workflows/CI/badge.svg)
[![linux](https://github.com/ShigekiKarita/tfd/workflows/linux/badge.svg)](https://github.com/ShigekiKarita/tfd/actions?query=workflow:linux)
[![windows](https://github.com/ShigekiKarita/tfd/workflows/windows/badge.svg)](https://github.com/ShigekiKarita/tfd/actions?query=workflow:windows)
[![codecov](https://codecov.io/gh/ShigekiKarita/tfd/branch/master/graph/badge.svg)](https://codecov.io/gh/ShigekiKarita/tfd)
[![Dub version](https://img.shields.io/dub/v/tfd.svg)](https://code.dlang.org/packages/tfd)

Expand Down
19 changes: 0 additions & 19 deletions dpp.sh

This file was deleted.

0 comments on commit 9eb9cf7

Please sign in to comment.