aboutsummaryrefslogtreecommitdiff
path: root/.builds/archlinux.yml
blob: 11e9043eb90ec4fc412694ee1b00b23831fcaeb1 (plain)
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
# Copyright (C) 2019 Robin Krahl <robin.krahl@ireas.org>
# SPDX-License-Identifier: CC0-1.0
image: archlinux
packages:
  - rustup
sources:
  - https://git.ireas.org/ntw
tasks:
  - setup: |
      rustup set profile minimal
      rustup default 1.37.0
      rustup target add thumbv7m-none-eabi
      rustup component add rustfmt
      rustup component add clippy
  - version: |
      rustc -V
  - build: |
      cd ntw
      cargo build --release
      size target/thumbv7m-none-eabi/release/ntw
  - format: |
      cd ntw
      cargo fmt -- --check
  - clippy: |
      cd ntw
      cargo clippy -- -D warnings