builds/nixos.yml: replace archlinux build

This commit is contained in:
Jeremy Baxter 2024-08-08 16:13:11 +12:00
parent 49bbd5f439
commit 9e350aea93
2 changed files with 25 additions and 31 deletions

View file

@ -1,31 +0,0 @@
---
image: archlinux
packages:
- bmake
- dmd
- curl
- ldc
- nix
sources:
- "https://git.sr.ht/~jeremy/esv"
tasks:
- prepare: |
printf 'experimental-features = nix-command flakes\n' \
| sudo tee -a /etc/nix/nix.conf
sudo systemctl start nix-daemon
sudo usermod -aG nix-users build
- build-dmd: |
cd esv
./configure -c dmd
bmake all clean
- build-ldc: |
cd esv
./configure -c ldc2
bmake
- install: |
sudo bmake -C esv install
- test: |
# very basic test :)
esv Matthew 5-7 >/dev/null
- flake: |
nix build ./esv

25
.builds/nixos.yml Normal file
View file

@ -0,0 +1,25 @@
---
image: nixos/unstable
packages:
- nixos.dmd
- nixos.curl
- nixos.gnumake
- nixos.ldc
environment:
NIX_CONFIG: "experimental-features = nix-command flakes"
sources:
- "https://git.sr.ht/~jeremy/esv"
tasks:
- build-dmd: |
cd esv
./configure -c dmd
make all clean
- build-ldc: |
cd esv
./configure -c ldc2
make
- install: |
nix profile install ./esv
- test: |
# very basic test :)
esv Matthew 5-7 >/dev/null