diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-11-25 20:05:07 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-01-18 12:57:38 +0100 |
commit | 5dae12164e48412e491918a2a094372158fdfa77 (patch) | |
tree | 6cb5eca5d6ca3af06c50c44133341f1a673d5a80 | |
parent | c638b21c1e09ba7a0a76e0fa5d930fbc11abe62d (diff) |
Add builds for sourcehut
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | .builds/debian.yml | 24 | ||||
-rw-r--r-- | .builds/nixos.yml | 20 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.builds/debian.yml b/.builds/debian.yml new file mode 100644 index 0000000..84ad7af --- /dev/null +++ b/.builds/debian.yml @@ -0,0 +1,24 @@ +image: debian/buster +sources: + - https://git.sr.ht/~matthiasbeyer/butido +packages: + - libssl-dev + - openssl + - pkg-config +tasks: + - install: curl https://sh.rustup.rs -sSf | sh -s -- -y + - build: | + cd butido + PATH="$HOME/.cargo/bin:$PATH" cargo build --all --all-features + - test: | + cd butido + PATH="$HOME/.cargo/bin:$PATH" cargo test --all --all-features + - clippy: | + cd butido + PATH="$HOME/.cargo/bin:$PATH" rustup component add clippy + PATH="$HOME/.cargo/bin:$PATH" cargo clippy --all --all-targets --all-features -- -D warnings +triggers: + - action: email + condition: always + to: mail@beyermatthias.de, matthias.beyer@atos.net + diff --git a/.builds/nixos.yml b/.builds/nixos.yml new file mode 100644 index 0000000..b7b13b7 --- /dev/null +++ b/.builds/nixos.yml @@ -0,0 +1,20 @@ +image: nixos/20.09 +repositories: + nixpkgs: https://nixos.org/channels/nixos-20.09 +sources: + - https://git.sr.ht/~matthiasbeyer/butido +tasks: + - install: | + cd butido + nix-shell ./shell.nix --run "echo nix-shell ready" + - build: | + cd butido + nix-shell ./shell.nix --run "cargo build --all --all-features" + - test: | + cd butido + nix-shell ./shell.nix --run "cargo test --all --all-features" +triggers: + - action: email + condition: always + to: mail@beyermatthias.de, matthias.beyer@atos.net + |