aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2022-12-02 11:38:34 +0000
committerAlex <alex@adnab.me>2022-12-02 11:38:34 +0000
commiteba95c9b28898430cffa379faf2835d471189ccc (patch)
treeec44f2887e0f915af3dab1eb22c2193fcaa69dfd
parentf306e8dc8d0e93478353ce39b6064e8c06a8bca6 (diff)
parent75aa6405f25f4e13dd0e6d3a75546effbf63115c (diff)
downloaddiplonat-eba95c9b28898430cffa379faf2835d471189ccc.tar.gz
diplonat-eba95c9b28898430cffa379faf2835d471189ccc.zip
Merge pull request 'CI: make rustfmt work in nix' (#17) from ci-fmt into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/diplonat/pulls/17
-rw-r--r--.drone.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.drone.yml b/.drone.yml
index 1b97a00..df06439 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -6,10 +6,12 @@ node:
nix-daemon: 1
steps:
- #- name: check formatting
- # image: nixpkgs/nix:nixos-22.05
- # commands:
- # - nix run --extra-experimental-features nix-command --extra-experimental-features flakes github:nixos/nixpkgs/nixos-22.05#cargo fmt -- --check
+ - name: check formatting
+ image: nixpkgs/nix:nixos-22.05
+ environment:
+ NIX_PATH: 'nixpkgs=channel:nixos-22.05'
+ commands:
+ - nix-shell -p cargo -p rustfmt --run 'cargo fmt -- --check'
- name: build
image: nixpkgs/nix:nixos-22.05
@@ -33,6 +35,6 @@ trigger:
---
kind: signature
-hmac: c8525b399be9c11eec7f6549242aceda6442114e3b71b587c03c074178c06bf5
+hmac: 110a818a7e2a1c48032c552a2fa482c7ef8293c3108fa23b01a738c567060dc9
...