builds: initialise
Initialise builds.sr.ht CI to build for Alpine Linux, Arch Linux and OpenBSD. Building for Arch will also test the Nix flake builds.
This commit is contained in:
parent
b617bf3087
commit
1d6a713d5a
3 changed files with 69 additions and 0 deletions
21
.builds/alpine.yml
Normal file
21
.builds/alpine.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
image: alpine/edge
|
||||||
|
packages:
|
||||||
|
- clang
|
||||||
|
- gcc
|
||||||
|
sources:
|
||||||
|
- "https://git.sr.ht/~jeremy/callisto"
|
||||||
|
tasks:
|
||||||
|
- build-clang: |
|
||||||
|
cd callisto
|
||||||
|
./configure -c clang
|
||||||
|
make
|
||||||
|
make clean
|
||||||
|
- build-gcc: |
|
||||||
|
cd callisto
|
||||||
|
./configure -c gcc
|
||||||
|
make
|
||||||
|
- install: |
|
||||||
|
sudo make -Ccallisto install
|
||||||
|
- test: |
|
||||||
|
csto callisto/test.lua
|
28
.builds/archlinux.yml
Normal file
28
.builds/archlinux.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
image: archlinux
|
||||||
|
packages:
|
||||||
|
- clang
|
||||||
|
- nix
|
||||||
|
sources:
|
||||||
|
- "https://git.sr.ht/~jeremy/callisto"
|
||||||
|
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-clang: |
|
||||||
|
cd callisto
|
||||||
|
./configure -c clang
|
||||||
|
make
|
||||||
|
make clean
|
||||||
|
- build-gcc: |
|
||||||
|
cd callisto
|
||||||
|
./configure -c gcc
|
||||||
|
make
|
||||||
|
- install: |
|
||||||
|
sudo make -Ccallisto install
|
||||||
|
- test: |
|
||||||
|
csto callisto/test.lua
|
||||||
|
- flake: |
|
||||||
|
nix build ./callisto
|
20
.builds/openbsd.yml
Normal file
20
.builds/openbsd.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
image: openbsd/latest
|
||||||
|
packages:
|
||||||
|
- gcc-11.2.0p9
|
||||||
|
sources:
|
||||||
|
- "https://git.sr.ht/~jeremy/callisto"
|
||||||
|
tasks:
|
||||||
|
- build-clang: |
|
||||||
|
cd callisto
|
||||||
|
./configure -c clang
|
||||||
|
make
|
||||||
|
make clean
|
||||||
|
- build-gcc: |
|
||||||
|
cd callisto
|
||||||
|
./configure -c egcc
|
||||||
|
make
|
||||||
|
- install: |
|
||||||
|
doas make -Ccallisto install
|
||||||
|
- test: |
|
||||||
|
csto callisto/test.lua
|
Loading…
Add table
Add a link
Reference in a new issue