-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Otherwise, we risk multiple jobs using the same directory.
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
branches: | ||
- main | ||
- update_flake_lock_action | ||
- ci/** | ||
pull_request: | ||
jobs: | ||
nix: | ||
|
@@ -25,21 +26,23 @@ jobs: | |
- name: NixOS test | ||
if: matrix.system == 'x86_64-linux' | ||
run: | | ||
om init .#nixos -o /tmp/nixconfig \ | ||
CONF=${{ runner.temp }}/nixos && mkdir $CONF | ||
om init .#nixos -o $CONF \ | ||
--non-interactive \ | ||
--params '{"hostname": "example", "username": "srid", "git-name": "Srid", "git-email": "[email protected]"}' | ||
set -x | ||
nix build /tmp/nixconfig#nixosConfigurations.example.config.system.build.toplevel | ||
nix build ${CONF}#nixosConfigurations.example.config.system.build.toplevel | ||
type -f ./result/etc/profiles/per-user/srid/bin/git | ||
- name: nix-darwin test | ||
if: matrix.system == 'aarch64-darwin' || matrix.system == 'x86_64-darwin' | ||
run: | | ||
om init .#darwin -o /tmp/nixconfig \ | ||
CONF=${{ runner.temp }}/darwin && mkdir $CONF | ||
om init .#darwin -o $CONF \ | ||
--non-interactive \ | ||
--params '{"hostname": "example", "username": "srid", "git-name": "Srid", "git-email": "[email protected]"}' | ||
set -x | ||
nix build /tmp/nixconfig#darwinConfigurations.example.config.system.build.toplevel | ||
nix build ${CONF}#darwinConfigurations.example.config.system.build.toplevel | ||
type -f ./result/etc/profiles/per-user/srid/bin/git | ||
# TODO: Use `om init` like above | ||
|
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