diff --git a/.github/workflows/build.sh b/.github/workflows/build.sh index 146580d..8c45be2 100755 --- a/.github/workflows/build.sh +++ b/.github/workflows/build.sh @@ -42,9 +42,10 @@ case $OS in mkdir dist mv *.pkg.tar.zst dist ;; - "NixOS") - # TODO - ;; +# "NixOS") +# echo NixOS +# nix build +# ;; *) echo "Operating system is not recognized." ;; diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 690ec7b..39a2d3c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,4 +29,20 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - path: ./dist/* \ No newline at end of file + path: ./dist/* + nix-build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install nix + uses: cachix/install-nix-action@v22 + + - name: Build + run: nix build + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + path: ./result/* \ No newline at end of file