nur-packages

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

build.yml (1721B)


      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=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz
     19         os:
     20           - ubuntu-latest
     21           - macos-latest
     22     runs-on: ${{ matrix.os }}
     23     steps:
     24     - name: Checkout repository
     25       uses: actions/checkout@v4
     26     - name: Install nix
     27       uses: cachix/install-nix-action@v30
     28       with:
     29         nix_path: "${{ matrix.nixPath }}"
     30         extra_nix_config: |
     31           experimental-features = nix-command flakes
     32           access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
     33     - name: Show nixpkgs version
     34       run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
     35     - name: Setup cachix
     36       uses: cachix/cachix-action@v15
     37       with:
     38         name: ${{ matrix.cachixName }}
     39         authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
     40     - name: Check evaluation
     41       run: |
     42         nix-env -f . -qa \* --meta --xml \
     43           --allowed-uris https://static.rust-lang.org \
     44           --option restrict-eval true \
     45           --option allow-import-from-derivation true \
     46           --drv-path --show-trace \
     47           -I nixpkgs=$(nix-instantiate --find-file nixpkgs) \
     48           -I $PWD
     49     - name: Build nix packages
     50       run: nix shell -f '<nixpkgs>' nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs
     51       env:
     52         NIXPKGS_ALLOW_INSECURE: 1
     53     - name: Trigger NUR update
     54       run: curl -XPOST "https://nur-update.nix-community.org/update?repo=${{ matrix.nurRepo }}"