From 56b63b7c212d9783df893a9d3b4430fefb8bd778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Mon, 1 Mar 2021 11:02:31 +0000 Subject: [PATCH] Update Semaphore configuration --- .semaphore/semaphore.yml | 62 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .semaphore/semaphore.yml diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml new file mode 100644 index 00000000..c6e28ec2 --- /dev/null +++ b/.semaphore/semaphore.yml @@ -0,0 +1,62 @@ +version: v1.0 +name: Rust +agent: + machine: + type: e1-standard-2 + os_image: ubuntu1804 + containers: + - name: main + image: 'registry.semaphoreci.com/rust:1.47' +blocks: + - name: Rustfmt + task: + jobs: + - name: run cargo fmt + commands: + - checkout + - rustup component add rustfmt + - cargo fmt -- --check + dependencies: [] + - name: Clippy + dependencies: + - Rustfmt + task: + jobs: + - name: Run clippy + commands: + - rustup component add clippy + - cargo clippy + - name: Build nalgebra (native) + dependencies: + - Clippy + task: + jobs: + - name: Install deps + commands: + - apt-get install -y cmake gfortran libblas-dev liblapack-dev + - name: Build --no-default-feature + commands: + - cargo build --no-default-features + - name: Build with default features + commands: + - cargo build + - name: Build --all-features + commands: + - cargo build --all-features + - name: Build nalgebra-glm (native) + dependencies: + - Clippy + task: + jobs: + - name: Build --all-features + commands: + - cargo build -p nalgebra-glm --all-features + - name: Build nalgebra-lapack (native) + dependencies: + - Clippy + task: + jobs: + - name: Build + commands: + - cd nalgebra-lapack + - cargo build