-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 861 Bytes
/
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
name: Linux
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
name: ${{ matrix.conf.name }} - Build
runs-on: ${{ matrix.conf.os }}
strategy:
fail-fast: false
matrix:
conf:
- { name: "Ubuntu g++", os: ubuntu-latest, compiler: "g++" }
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build library
env:
CXX: ${{matrix.conf.compiler}}
run: |
g++ include/ShkyeraGrad.hpp --std=c++17
- name: Build examples
env:
CXX: ${{matrix.conf.compiler}}
run: |
g++ examples/scalars.cpp -O3 --std=c++17
./a.out
g++ examples/xor_classification.cpp -O3 --std=c++17
./a.out
g++ examples/xor_regression.cpp -O3 --std=c++17
./a.out