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