From e6f3fbb21a0374c056f225d6b959da1ca3fd23e4 Mon Sep 17 00:00:00 2001 From: kekrby Date: Sat, 27 Aug 2022 21:38:29 +0300 Subject: [PATCH] CI: init --- .github/workflows/CI.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..ef62033 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,24 @@ +name: CI + +on: [push, pull_request] + +jobs: + CI: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: "Install Nix" + uses: cachix/install-nix-action@v17 + - name: Build + run: | + for iso in $(nix flake show --json | nix run nixpkgs#jq -- -r keys[]); do + nix build .#$iso + cp result/iso/*.iso $iso.iso + rm result + done + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: "*.iso"