Compare commits
17 Commits
9e910a651e
...
shared-nix
Author | SHA1 | Date | |
---|---|---|---|
|
19e1ebdc59 | ||
|
75ef0d24f5 | ||
|
bf2e98d3f2 | ||
|
8ebb8f5beb | ||
|
028033af54 | ||
|
72e8b2aa02 | ||
|
bf93da9584 | ||
|
42c3bde73f | ||
|
ed41d77f58 | ||
|
8fd9980d29 | ||
|
b2746ae916 | ||
|
f91a156b52 | ||
|
e03d9ee56e | ||
|
18013d108e | ||
|
6f1d7a3184 | ||
ec8fd7e2a7 | |||
45226e18ce |
10
.woodpecker/.all-checks-complete.yml
Normal file
10
.woodpecker/.all-checks-complete.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
pipeline:
|
||||
echo:
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "All required checks complete"
|
||||
|
||||
depends_on:
|
||||
- build
|
||||
|
||||
skip_clone: true
|
22
.woodpecker/.build.yml
Normal file
22
.woodpecker/.build.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
pipeline:
|
||||
build:
|
||||
image: nixos/nix
|
||||
commands:
|
||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||
- nix run --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local nixpkgs#bashInteractive -- -c 'echo Installed'
|
||||
# Lint
|
||||
- nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- fmt --all -- --check
|
||||
- nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate
|
||||
- nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command alejandra -- --check .
|
||||
- nix develop --store 'unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' --eval-store local .#ci --command markdown-link-check README.md
|
||||
# Test
|
||||
- nix develop --command cargo test --verbose --release
|
||||
- nix develop --command cargo test --verbose
|
||||
# Run through Nix
|
||||
- nix build
|
||||
- nix run
|
||||
volumes:
|
||||
- "/nix:/mnt/nix:ro"
|
||||
|
||||
when:
|
||||
evaluate: '(CI_BUILD_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH) || (CI_BUILD_EVENT == "pull_request")'
|
@@ -1,5 +1,6 @@
|
||||
# The Little Learner, in Rust
|
||||
|
||||
[](https://github.com/Smaug123/little_learner/actions/workflows/rust.yml)
|
||||
[](https://woodpecker.patrickstevens.co.uk/api/badges/patrick/little_learner/status.svg)
|
||||
|
||||
Me running through [The Little Learner](https://www.thelittlelearner.com/), but in Rust instead of Scheme.
|
||||
|
Reference in New Issue
Block a user