initialise sourcehut CI
esv is now built and briefly tested on Arch Linux and OpenBSD.
This commit is contained in:
parent
5a9103bfa8
commit
4bb8d391fd
3 changed files with 49 additions and 1 deletions
31
.builds/archlinux.yml
Normal file
31
.builds/archlinux.yml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
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 -Cesv install
|
||||||
|
- test: |
|
||||||
|
# very basic test :)
|
||||||
|
esv Matthew 5-7 >/dev/null
|
||||||
|
- flake: |
|
||||||
|
nix build ./esv
|
17
.builds/openbsd.yml
Normal file
17
.builds/openbsd.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
image: openbsd/latest
|
||||||
|
packages:
|
||||||
|
- curl
|
||||||
|
- ldc
|
||||||
|
sources:
|
||||||
|
- "https://git.sr.ht/~jeremy/esv"
|
||||||
|
tasks:
|
||||||
|
- build: |
|
||||||
|
cd esv
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
- install: |
|
||||||
|
doas make -Cesv install
|
||||||
|
- test: |
|
||||||
|
# very basic test :)
|
||||||
|
esv Matthew 5-7 >/dev/null
|
|
@ -5,6 +5,6 @@ end_of_line = lf
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[*.nix]
|
[*.{nix,yml}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
Loading…
Add table
Add a link
Reference in a new issue