-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (49 loc) · 1.42 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
pull_request:
push:
schedule:
- cron: '0 0 * * *'
jobs:
main:
runs-on: ubuntu-latest
env:
CANDLEX_NIF_BUILD: true
BLEND: ${{ matrix.blend }}
strategy:
fail-fast: false
matrix:
include:
- elixir: '1.17'
erlang: '27.0'
lint: true
- elixir: '1.16'
erlang: '26.2.5'
- elixir: '1.15'
erlang: '25.3.2.12'
- elixir: '1.15'
erlang: '25.3.2.12'
blend: "nx06"
steps:
- uses: actions/checkout@v4
- run: cargo fmt --check --manifest-path=native/candlex/Cargo.toml
if: ${{ matrix.lint }}
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.erlang }}
elixir-version: ${{ matrix.elixir }}
- run: mix deps.unlock --all && mix deps.get
if: ${{ github.event_name == 'schedule' }}
- run: mix deps.get --check-locked
if: ${{ github.event_name != 'schedule' }}
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix deps.compile
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix test
- run: mix run examples/linear_regression.exs
- run: mix run examples/image_classification.exs
- run: mix run examples/text_classification.exs