-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 884 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
39
40
41
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/ShkyeraTensor.hpp --std=c++20
- name: Build examples
env:
CXX: ${{matrix.conf.compiler}}
run: |
g++ examples/algebra.cpp --std=c++20
g++ examples/dataset.cpp --std=c++20
- name: Test
env:
CXX: ${{matrix.conf.compiler}}
run: |
g++ tests/mainTest.cpp --std=c++20
./a.out