From d20160548ed1b6cc298f9e092a6faf3f58f4095d Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 26 Oct 2024 12:49:18 -0600 Subject: [PATCH] flake/integration-tests: Expose GitHub Actions matrix Currently only integration tests. --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ flake/integration-tests.nix | 6 ++++++ 3 files changed, 32 insertions(+) diff --git a/flake.lock b/flake.lock index 8020ab6..c3a5d92 100644 --- a/flake.lock +++ b/flake.lock @@ -56,6 +56,26 @@ "type": "github" } }, + "nix-github-actions": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1729742964, + "narHash": "sha256-B4mzTcQ0FZHdpeWcpDYPERtyjJd/NIuaQ9+BV1h+MpA=", + "owner": "nix-community", + "repo": "nix-github-actions", + "rev": "e04df33f62cdcf93d73e9a04142464753a16db67", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-github-actions", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1726042813, @@ -93,6 +113,7 @@ "crane": "crane", "flake-compat": "flake-compat", "flake-parts": "flake-parts", + "nix-github-actions": "nix-github-actions", "nixpkgs": "nixpkgs", "nixpkgs-stable": "nixpkgs-stable" } diff --git a/flake.nix b/flake.nix index 868ea70..edc472e 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + nix-github-actions = { + url = "github:nix-community/nix-github-actions"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + flake-compat = { url = "github:edolstra/flake-compat"; flake = false; diff --git a/flake/integration-tests.nix b/flake/integration-tests.nix index a05d742..4333649 100644 --- a/flake/integration-tests.nix +++ b/flake/integration-tests.nix @@ -29,6 +29,12 @@ in }; config = { + flake.githubActions = inputs.nix-github-actions.lib.mkGithubMatrix { + checks = { + inherit (self.checks) x86_64-linux; + }; + }; + perSystem = { self', pkgs, config, system, ... }: let cfg = config.attic.integration-tests;