nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

build.yml (1855B)


      1 name: "Build and populate cache"
      2 on:
      3   pull_request:
      4   push:
      5     branches:
      6       - master
      7   schedule:
      8     - cron:  '51 2 * * *'
      9 jobs:
     10   tests:
     11     strategy:
     12       matrix:
     13         nurRepo:
     14           - sikmir
     15         cachixName:
     16           - sikmir
     17         nixPath:
     18           - nixpkgs=channel:nixpkgs-unstable
     19         os:
     20           - ubuntu-latest
     21           - macos-latest
     22     runs-on: ${{ matrix.os }}
     23     steps:
     24     - name: Checkout repository
     25       uses: actions/checkout@v3
     26     - name: Install nix
     27       uses: cachix/install-nix-action@v17
     28       with:
     29         nix_path: "${{ matrix.nixPath }}"
     30         # nix 2.6 breaks restrict-eval, when using the NIX_PATH
     31         # see https://github.com/NixOS/nix/issues/5980
     32         install_url: https://releases.nixos.org/nix/nix-2.5.1/install
     33         extra_nix_config: |
     34           experimental-features = nix-command flakes
     35           access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
     36     - name: Show nixpkgs version
     37       run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
     38     - name: Setup cachix
     39       uses: cachix/cachix-action@v10
     40       with:
     41         name: ${{ matrix.cachixName }}
     42         authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
     43     - name: Check evaluation
     44       run: |
     45         nix-env -f . -qa \* --meta --xml \
     46           --allowed-uris https://static.rust-lang.org \
     47           --option restrict-eval true \
     48           --option allow-import-from-derivation true \
     49           --drv-path --show-trace \
     50           -I nixpkgs=$(nix-instantiate --find-file nixpkgs) \
     51           -I $PWD
     52     - name: Build nix packages
     53       run: nix shell -f '<nixpkgs>' nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs
     54       env:
     55         NIXPKGS_ALLOW_INSECURE: 1
     56     - name: Trigger NUR update
     57       run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=${{ matrix.nurRepo }}"