From 1997074b49a9cc7229f465504a1ab346965adaa6 Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Thu, 28 Mar 2024 13:38:17 +0100 Subject: [PATCH] Set up GitHub actions --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0f74747 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +on: + push: + branches: [ "main", "github-actions" ] + +jobs: + build: + strategy: + matrix: + configuration: + - "nixosConfigurations.volt-nixos.config.system.build.toplevel" + - "nixosConfigurations.zephyr-nixos.config.system.build.toplevel" + - "homeConfigurations.jeremy@volt.activationPackage" + - "homeConfigurations.jeremy@zephyr.activationPackage" + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: DeterminateSystems/nix-installer-action@v4 + - uses: DeterminateSystems/magic-nix-cache-action@v1 + - run: nix build '.#${{ matrix.configuration }}'