aboutsummaryrefslogtreecommitdiff
path: root/.builds/archlinux.yml
blob: 8392163a0a33ce216f5afa378f6d8c2efc5e8417 (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 update stable
      rustup self upgrade-data
      rustup default stable
      rustup target add thumbv7m-none-eabi
      rustup component add rustfmt
      rustup component add clippy
  - version: |
      rustc -V
  - build: |
      cd ntw
      cargo build --release
  - format: |
      cd ntw
      cargo fmt -- --check
  - clippy: |
      cd ntw
      cargo clippy -- -D warnings