From 44bb294dab43c7bbbefddcbd26756532685fa5f2 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 28 Dec 2023 22:40:37 -0500 Subject: [PATCH] Fix woodpecker ci --- .woodpecker/.build.yml | 11 ----------- .woodpecker/.debug.yml | 18 ++++++++++++++++++ .woodpecker/.release.yml | 20 ++++++++++++++++++++ rust-toolchain | 1 - rust-toolchain.toml | 5 +++++ 5 files changed, 43 insertions(+), 12 deletions(-) delete mode 100644 .woodpecker/.build.yml create mode 100644 .woodpecker/.debug.yml create mode 100644 .woodpecker/.release.yml delete mode 100644 rust-toolchain create mode 100644 rust-toolchain.toml diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml deleted file mode 100644 index dc78ca2..0000000 --- a/.woodpecker/.build.yml +++ /dev/null @@ -1,11 +0,0 @@ -variables: - - &rust_image 'rust:1.73' - -steps: - build: - image: *rust_image - commands: - - apt update - - apt install libudev-dev - - cargo build --release - - cargo test \ No newline at end of file diff --git a/.woodpecker/.debug.yml b/.woodpecker/.debug.yml new file mode 100644 index 0000000..36973d8 --- /dev/null +++ b/.woodpecker/.debug.yml @@ -0,0 +1,18 @@ + +variables: + - &rust_image 'git.seanomik.net/seanomik/rust-nightly:2023-11-21-bookworm' + +steps: + Build - Debug: + image: *rust_image + commands: + - apt update + - apt install libudev-dev -y + - cargo build + + Test - Debug: + image: *rust_image + commands: + - apt update + - apt install libudev-dev -y + - cargo test --all diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml new file mode 100644 index 0000000..d922a35 --- /dev/null +++ b/.woodpecker/.release.yml @@ -0,0 +1,20 @@ +variables: + - &rust_image 'git.seanomik.net/seanomik/rust-nightly:2023-11-21-bookworm' + +when: + - event: pull_request + +steps: + Build - Release: + image: *rust_image + commands: + - apt update + - apt install libudev-dev -y + - cargo build --release + + Test - Release: + image: *rust_image + commands: + - apt update + - apt install libudev-dev -y + - cargo test --all --release diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index 07ade69..0000000 --- a/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -nightly \ No newline at end of file diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..5b28b38 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,5 @@ +[toolchain] +channel = "nightly-2023-11-21" +#components = [ "rustfmt", "rustc-dev" ] +targets = [ "x86_64-unknown-linux-gnu" ] +#profile = "minimal" \ No newline at end of file