-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.47 KB
/
build_and_test.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
name: Build and Test
on:
push:
branches:
- master
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8.10]
steps:
- name: Install dependancies
run: |
sudo apt-get update
sudo apt-get install -y cmake
- uses: actions/checkout@v2
- name: Build submodules
run: |
cd third_party
git submodule init
git submodule update
- name: Build project
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release && make -j 8 -C build/
- name: "Set up Python ${{ matrix.python }}"
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: "Cache Python dependencies"
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-${{ matrix.python }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python }}-pip-
- name: "Install Python dependencies"
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Testing Conv2d
run: |
chmod +x ./tests/run_tests.sh
./tests/run_tests.sh --is_ci
- name: Display structure of folder
run: ls -R