From 194e973f907b13ca11a6f211d6dc4257a12a2619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Wed, 8 Jul 2020 15:19:01 +0200 Subject: [PATCH] ci: add Nix action --- ci/nix.yml | 25 ++ ci/properties/nix.properties.json | 6 + icons/nix.svg | 513 ++++++++++++++++++++++++++++++ 3 files changed, 544 insertions(+) create mode 100644 ci/nix.yml create mode 100644 ci/properties/nix.properties.json create mode 100644 icons/nix.svg diff --git a/ci/nix.yml b/ci/nix.yml new file mode 100644 index 0000000..e5213e0 --- /dev/null +++ b/ci/nix.yml @@ -0,0 +1,25 @@ +name: Nix + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.1 + - name: Install Nix + uses: cachix/install-nix-action@v10 + - name: Install Cachix + - uses: cachix/cachix-action@v6 + with: + # Once you generate a binary cache on https://app.cachix.org, you'll need to insert the name of the cache here + name: mycache + signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + - name: Run nix-build + run: nix-build + - name: Check nix-shell works + run: nix-shell --run "echo OK" \ No newline at end of file diff --git a/ci/properties/nix.properties.json b/ci/properties/nix.properties.json new file mode 100644 index 0000000..3a90d75 --- /dev/null +++ b/ci/properties/nix.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Nix", + "description": "Build Nix project", + "iconName": "nix", + "categories": ["Nix"] +} diff --git a/icons/nix.svg b/icons/nix.svg new file mode 100644 index 0000000..9a70a14 --- /dev/null +++ b/icons/nix.svg @@ -0,0 +1,513 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + +