Skip to content

Commit

Permalink
Merge pull request #35 from britter/bene/ci-build
Browse files Browse the repository at this point in the history
  • Loading branch information
britter authored Jun 6, 2024
2 parents 5f99121 + 6d5e38f commit f146c02
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "CI Build"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build-x86:
name: Build x86 systems
runs-on: ubuntu-latest
strategy:
matrix:
configuration: ["pulse-14", "latitude-7280", "cyberoffice"]
steps:
- name: Free disk space
uses: jlumbroso/free-disk-space@main
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- run: nix build .#nixosConfigurations.${{ matrix.configuration }}.config.system.build.toplevel
build-iso:
name: Build ISOs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- run: nix build .#nixosConfigurations.minimalServerIso.config.system.build.isoImage
build-darwin:
name: Build darwin systems
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- run: nix build .#darwinConfigurations.WQ0C6FWJ1W.config.system.build.toplevel
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
in
inputs.nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs;};
modules = [
./hosts/latitude-7280/configuration.nix
];
Expand Down

0 comments on commit f146c02

Please sign in to comment.