-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.4 KB
/
ci.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
name: CI
on:
push:
workflow_dispatch:
schedule:
- cron: "0 6 * * 1"
jobs:
build:
strategy:
fail-fast: false
matrix:
experimental: [false]
os: [ubuntu-latest]
crystal:
- master-debian-11
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
container: 84codes/crystal:${{ matrix.crystal }}
steps:
- uses: actions/checkout@v3
- name: Install build deps
run: |
apt-get update && apt-get install -y gnupg wget curl apt-transport-https ca-certificates
wget -q -O - https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor > /etc/apt/trusted.gpg.d/coral-edgetpu.gpg
echo "deb [signed-by=/etc/apt/trusted.gpg.d/coral-edgetpu.gpg] https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list
apt update && apt install -y build-essential cmake linux-headers-generic git python3 opencl-headers libopencv-core-dev clang-format-9 libedgetpu-dev libedgetpu1-std
- name: Install dependencies
run: shards install --without-development --skip-postinstall --ignore-crystal-version -v
- name: Format
run: crystal tool format --check
- name: Install Tensorflow Lite
run: ./build_tensorflowlite.sh IS_LIB
- name: Run tests
run: crystal spec -v --error-trace
env:
LD_LIBRARY_PATH: /usr/local/lib