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 1/2] 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + From 349e3dde9514886ed5acdac5c7636a47cbfd70dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Thu, 24 Sep 2020 11:57:59 +0200 Subject: [PATCH 2/2] nix: review feedback --- ci/nix.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ci/nix.yml b/ci/nix.yml index e5213e0..b42fe3e 100644 --- a/ci/nix.yml +++ b/ci/nix.yml @@ -1,3 +1,7 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. name: Nix on: @@ -12,9 +16,9 @@ jobs: steps: - uses: actions/checkout@v2.3.1 - name: Install Nix - uses: cachix/install-nix-action@v10 + uses: cachix/install-nix-action@95a8068e317b8def9482980abe762f36c77ccc99 - name: Install Cachix - - uses: cachix/cachix-action@v6 + - uses: cachix/cachix-action@490a246fbc7f92208d309eeb54383a4d828cedc1 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