Compare commits
1 Commits
shared-nix
...
9e910a651e
Author | SHA1 | Date | |
---|---|---|---|
|
9e910a651e |
@@ -1,22 +0,0 @@
|
|||||||
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,10 +1,10 @@
|
|||||||
pipeline:
|
pipeline:
|
||||||
echo:
|
nix:
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- echo "All required checks complete"
|
- echo "All required checks complete"
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
|
- run
|
||||||
- build
|
- build
|
||||||
|
- ci-specific
|
||||||
skip_clone: true
|
|
11
.woodpecker/build.yml
Normal file
11
.woodpecker/build.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: nixos/nix
|
||||||
|
commands:
|
||||||
|
- nix develop --command cargo test --verbose --release
|
||||||
|
- nix develop --command cargo test --verbose
|
||||||
|
lint:
|
||||||
|
image: nixos/nix
|
||||||
|
commands:
|
||||||
|
- nix develop --command cargo -- fmt --all -- --check
|
||||||
|
- nix develop --command cargo -- clippy -- -D warnings -W clippy::must_use_candidate
|
7
.woodpecker/ci-specific.yml
Normal file
7
.woodpecker/ci-specific.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
pipeline:
|
||||||
|
alejandra:
|
||||||
|
image: nixos/nix
|
||||||
|
commands:
|
||||||
|
- nix develop .#ci --command alejandra -- --check .
|
||||||
|
- nix develop .#ci --command markdown-link-check README.md
|
||||||
|
|
6
.woodpecker/run.yml
Normal file
6
.woodpecker/run.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
pipeline:
|
||||||
|
nix:
|
||||||
|
image: nixos/nix
|
||||||
|
commands:
|
||||||
|
- nix build
|
||||||
|
- nix run
|
@@ -1,6 +1,5 @@
|
|||||||
# The Little Learner, in Rust
|
# The Little Learner, in Rust
|
||||||
|
|
||||||
[](https://github.com/Smaug123/little_learner/actions/workflows/rust.yml)
|
[](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.
|
Me running through [The Little Learner](https://www.thelittlelearner.com/), but in Rust instead of Scheme.
|
||||||
|
Reference in New Issue
Block a user