Skip to content

Commit

Permalink
CI: try to use flake instead
Browse files Browse the repository at this point in the history
  • Loading branch information
fkrause98 committed Sep 4, 2024
1 parent c3b7847 commit 98d005b
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Setup erlang
run: cd sequential/installing && nix-shell
- run: make test PROFILE=ci
run: cd sequential/installing && nix develop
- name: Re-use nix flake to check erlang tests
run: cd sequential/installing && nix develop --command bash -c "cd ../../ && make test PROFILE=ci"
62 changes: 62 additions & 0 deletions sequential/installing/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions sequential/installing/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
description = "A flake to download Erlang 27 and Rebar3 from Nixpkgs 24.05";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/24.05"; # Pinning to Nixpkgs version 24.05
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/24.05";
flake-utils.url = "github:numtide/flake-utils/main";
};

outputs = { self, nixpkgs, flake-utils, ... }:
Expand All @@ -13,8 +13,8 @@
in {
packages.default = pkgs.mkShell {
buildInputs = [
pkgs.erlang_27 # Erlang 27
pkgs.rebar3 # Rebar3
pkgs.erlang_27
pkgs.rebar3
];
};
});
Expand Down
9 changes: 0 additions & 9 deletions sequential/installing/shell.nix

This file was deleted.

0 comments on commit 98d005b

Please sign in to comment.