Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ on:
default: |
{
"aarch64-darwin": "macos-latest",
"x86_64-darwin": "macos-latest",
"x86_64-linux": "ubuntu-latest",
"i686-linux": "ubuntu-latest"
"aarch64-linux": "ubuntu-latest"
}
outputs:
flake_name:
Expand Down
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ You'll see something like this when your workflow has run successfully:

## Configuration options

| Parameter | Description | Default |
| :----------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `visibility` | `public`, `unlisted`, or `private` ([private flakes][private-flakes] are available only on a [FlakeHub paid plan][signup]) | |
| `default-branch` | The [default Git branch][default-branch] for the repository | `${{ github.event.repository.default_branch }}` |
| `enable-ssh-agent` | Whether to enable [`webfactory/ssh-agent`][ssh-agent] in the workflow. If you set this to `true` you need to supply a secret named `ssh-private-key`. | `false` |
| `directory` | The root directory of your flake. | `.` |
| `fail-fast` | Whether to cancel all in-progress jobs if any matrix job fails | `true` |
| `runner-map` | A custom mapping of [Nix system types][nix-system] to desired Actions runners | `{ "aarch64-darwin": "macos-latest", "x86_64-darwin": "macos-latest", "x86_64-linux": "ubuntu-latest", "i686-linux": "ubuntu-latest", "aarch64-linux": "ubuntu-latest" }` |
| Parameter | Description | Default |
| :----------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------- |
| `visibility` | `public`, `unlisted`, or `private` ([private flakes][private-flakes] are available only on a [FlakeHub paid plan][signup]) | |
| `default-branch` | The [default Git branch][default-branch] for the repository | `${{ github.event.repository.default_branch }}` |
| `enable-ssh-agent` | Whether to enable [`webfactory/ssh-agent`][ssh-agent] in the workflow. If you set this to `true` you need to supply a secret named `ssh-private-key`. | `false` |
| `directory` | The root directory of your flake. | `.` |
| `fail-fast` | Whether to cancel all in-progress jobs if any matrix job fails | `true` |
| `runner-map` | A custom mapping of [Nix system types][nix-system] to desired Actions runners | `{ "aarch64-darwin": "macos-latest", "x86_64-linux": "ubuntu-latest", "aarch64-linux": "ubuntu-latest" }` |

## Example configurations

Expand Down Expand Up @@ -118,10 +118,10 @@ ERROR magic_nix_cache: FlakeHub cache initialization failed: FlakeHub cache erro

By default, the CI maps the Nix systems to their equivalent GitHub-hosted runners:

| | macOS (Apple Silicon) | ARM Linux | macOS (Intel) | x86 Linux |
| ------------------------------------------------- | ------------------------------------ | --------------------------- | ------------------------------------ | --------------------------- |
| Flake `system` (Nix build platform) | `aarch64-darwin` | `aarch64-linux` | `x86_64-darwin` | `x86_64-linux` |
| [GitHub Actions Runner][runners] (workflow label) | `macos-latest` (using Apple Silicon) | `ubuntu-latest` (using x86) | `macos-latest` (using Apple Silicon) | `ubuntu-latest` (using x86) |
| | macOS (Apple Silicon) | ARM Linux | x86 Linux |
| ------------------------------------------------- | ------------------------------------ | --------------------------- | --------------------------- |
| Flake `system` (Nix build platform) | `aarch64-darwin` | `aarch64-linux` | `x86_64-linux` |
| [GitHub Actions Runner][runners] (workflow label) | `macos-latest` (using Apple Silicon) | `ubuntu-latest` (using x86) | `ubuntu-latest` (using x86) |

> [!NOTE]
> There is also a [standard ARM Linux runner][runners-linux-arm] `ubuntu-24.04-arm`, currently in public preview and only supported on public repositories.
Expand All @@ -143,8 +143,7 @@ jobs:
with:
runner-map: |
{
"aarch64-darwin": "macos-latest-xlarge",
"x86_64-darwin": "macos-latest-large"
"aarch64-darwin": "macos-latest-xlarge"
}
```

Expand Down
20 changes: 11 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"aarch64-linux"
"aarch64-darwin"
"x86_64-linux"
"x86_64-darwin"
];

forEachSystem =
Expand All @@ -31,14 +30,17 @@
in
{

devShells = forEachSystem ({ pkgs, pkgs-old }: {
default = pkgs.mkShellNoCC {
buildInputs = [
pkgs.nodePackages.prettier
devShells = forEachSystem (
{ pkgs, pkgs-old }:
{
default = pkgs.mkShellNoCC {
buildInputs = [
pkgs.nodePackages.prettier

pkgs-old.action-validator
];
};
});
pkgs-old.action-validator
];
};
}
);
};
}