mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
name: Continuous integration
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
jobs:
|
|
all:
|
|
runs-on: ubuntu-20.04
|
|
env:
|
|
CARGO_ARGS: --release
|
|
steps:
|
|
- name: Code checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Rust install
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
# A SSH private key is required as some dependencies are from private repos
|
|
- uses: webfactory/ssh-agent@v0.5.2
|
|
with:
|
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY2 }}
|
|
|
|
- name: cargo check
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
args: ${{ env.CARGO_ARGS }}
|
|
|
|
- name: cargo fmt
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: -- --check
|
|
|
|
- name: cargo clippy
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: clippy
|
|
args: ${{ env.CARGO_ARGS }}
|
|
|
|
- name: cargo test
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: ${{ env.CARGO_ARGS }} |