-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .gitlab-ci.yml with both NixOS and Trixie builds
- Loading branch information
1 parent
57efc92
commit cb1152d
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Build on NixOS using the devshell from `flake.nix` and secp256k1 installed via `nix profile install` | ||
nixos-devshell: | ||
image: nixos/nix:latest | ||
variables: | ||
NIXPKGS_URL: "github:NixOS/nixpkgs/nixos-unstable" | ||
before_script: | ||
# Configure Nix to use a binary cache and enable experimental features | ||
- nix-env -iA nixpkgs.cachix | ||
- cachix use nix-community | ||
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf | ||
- nix profile install nixpkgs#secp256k1 | ||
script: | ||
- nix develop .#minimum -c gradle build run runEcdsa | ||
cache: | ||
key: "${CI_COMMIT_REF_SLUG}" | ||
paths: | ||
- /nix/store | ||
- ~/.gradle/ | ||
|
||
# Build on Trixie using Debian's OpenJDK 23, Gradle via the Wrapper and secp256k1 installed via nix profile install`. | ||
trixie-gradlew: | ||
image: debian:trixie-slim | ||
before_script: | ||
- apt-get update | ||
- apt-get -y install openjdk-23-jdk-headless nix-setup-systemd | ||
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf | ||
- nix profile install nixpkgs#secp256k1 | ||
script: | ||
- ./gradlew build run runEcdsa |