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..8653d6b --- /dev/null +++ b/.woodpecker/.debug.yml @@ -0,0 +1,17 @@ +variables: + - &rust_image 'git.seanomik.net/seanomik/rust-nightly:2023-11-21-bookworm' + +steps: + build: + image: *rust_image + commands: + - apt update + - apt install libudev-dev -y + - cargo build + + test: + 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..7066ff0 --- /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: + image: *rust_image + commands: + - apt update + - apt install libudev-dev -y + - cargo build --release + + test: + 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