From b978bd2061cb50f15459125f6548bffa193f8b78 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 9 Mar 2024 20:56:16 +0000 Subject: [PATCH 1/3] Add Woodpeck CI config --- .woodpecker.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..85257be --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,19 @@ +steps: + build: + when: + - event: cron + - event: push + branch: main + - event: pull_request + image: docker.io/rust:latest + commands: + - cargo build + test: + when: + - event: cron + - event: push + branch: main + - event: pull_request + image: docker.io/rust:latest + commands: + - cargo test -- 2.45.2 From 5823ef1c7b2cab0b23db4b26bd84c10388cbc426 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 9 Mar 2024 21:08:51 +0000 Subject: [PATCH 2/3] install libssl-dev --- .woodpecker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 85257be..de19820 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -7,6 +7,7 @@ steps: - event: pull_request image: docker.io/rust:latest commands: + - apt-get install libssl-dev - cargo build test: when: -- 2.45.2 From 076b3b94589ea7a844b563ba9a71eec483fd7a65 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 9 Mar 2024 21:09:29 +0000 Subject: [PATCH 3/3] use pined version of rust --- .woodpecker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index de19820..0072a71 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,7 +5,7 @@ steps: - event: push branch: main - event: pull_request - image: docker.io/rust:latest + image: docker.io/rust:1.52.1 commands: - apt-get install libssl-dev - cargo build @@ -15,6 +15,6 @@ steps: - event: push branch: main - event: pull_request - image: docker.io/rust:latest + image: docker.io/rust:1.52.1 commands: - cargo test -- 2.45.2