~comcloudway/little_town

3f1914e298000af767337bf42621df7d305c7fcf — Jakob Meier 1 year, 5 months ago a4c112c
Added woodpecker CI to check code using clippy
1 files changed, 27 insertions(+), 0 deletions(-)

A .woodpecker/check.yml
A .woodpecker/check.yml => .woodpecker/check.yml +27 -0
@@ 0,0 1,27 @@
---
variables:
  - &rust_target 'x86_64-unknown-linux-musl'
  - &rust_toolchain 'nightly'

pipeline:
  fetch:
    image: alpine:latest
    commands:
      - apk add ffmpeg unzip bash
      - bash fetch-assets.sh
  check:
    image: codeberg.org/comcloudway/alpine-cross:latest-amd64
    environment:
      RUST_TOOLCHAIN: *rust_toolchain
      RUST_TARGET: *rust_target
    commands:
      - apk update
      - apk add curl gcc musl-dev
      - curl https://sh.rustup.rs -sSf | sh -s -- -y
      - source $HOME/.cargo/env
      - rustup toolchain install $RUST_TOOLCHAIN
      - rustup default $RUST_TOOLCHAIN
      - rustup target add $RUST_TARGET
      - cd $CI_WORKSPACE
      - cargo update
      - cargo clippy --target $RUST_TARGET