Skip to content

Commit cb1152d

Browse files
committed
Add .gitlab-ci.yml with both NixOS and Trixie builds
1 parent 57efc92 commit cb1152d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.gitlab-ci.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Build on NixOS using the devshell from `flake.nix` and secp256k1 installed via `nix profile install`
2+
nixos-devshell:
3+
image: nixos/nix:latest
4+
variables:
5+
NIXPKGS_URL: "github:NixOS/nixpkgs/nixos-unstable"
6+
before_script:
7+
# Configure Nix to use a binary cache and enable experimental features
8+
- nix-env -iA nixpkgs.cachix
9+
- cachix use nix-community
10+
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
11+
- nix profile install nixpkgs#secp256k1
12+
script:
13+
- nix develop .#minimum -c gradle build run runEcdsa
14+
cache:
15+
key: "${CI_COMMIT_REF_SLUG}"
16+
paths:
17+
- /nix/store
18+
- ~/.gradle/
19+
20+
# Build on Trixie using Debian's OpenJDK 23, Gradle via the Wrapper and secp256k1 installed via nix profile install`.
21+
trixie-gradlew:
22+
image: debian:trixie-slim
23+
before_script:
24+
- apt-get update
25+
- apt-get -y install openjdk-23-jdk-headless nix-setup-systemd
26+
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
27+
- nix profile install nixpkgs#secp256k1
28+
script:
29+
- ./gradlew build run runEcdsa

0 commit comments

Comments
 (0)