mirror of
https://github.com/circify/circ.git
synced 2026-04-21 03:00:54 -04:00
37 lines
814 B
YAML
37 lines
814 B
YAML
name: Build & Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, ci ]
|
|
pull_request:
|
|
branches: [ master, ci ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install zsh
|
|
if: runner.os == 'Linux'
|
|
run: sudo apt-get update; sudo apt-get install zsh cvc4
|
|
- name: install dependencies
|
|
if: runner.os == 'Linux'
|
|
run: sudo apt-get install libboost-all-dev libssl-dev coinor-cbc coinor-libcbc-dev
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: nightly
|
|
override: true
|
|
- uses: Swatinem/rust-cache@v1
|
|
- name: Check
|
|
run: cargo check --verbose
|
|
- name: Build
|
|
run: cargo build --verbose && make build
|
|
- name: Run tests
|
|
run: make test
|