oatmeal 0.8.2 #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test and publish" | |
on: [push] | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
nurRepo: | |
- dustinblackman | |
nixPath: | |
- nixpkgs=channel:nixos-unstable | |
- nixpkgs=channel:nixpkgs-unstable | |
- nixpkgs=channel:nixos-20.03 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3.1.0 | |
- name: Install nix | |
uses: cachix/install-nix-action@v18 | |
with: | |
nix_path: "${{ matrix.nixPath }}" | |
- name: Show nixpkgs version | |
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' | |
- name: Check evaluation | |
run: | | |
nix-env -f . -qa \* --meta --xml \ | |
--allowed-uris https://static.rust-lang.org \ | |
--option restrict-eval true \ | |
--option allow-import-from-derivation true \ | |
--drv-path --show-trace \ | |
-I nixpkgs=$(nix-instantiate --find-file nixpkgs) \ | |
-I $PWD | |
- name: Build nix packages | |
# TODO switch to default nixpkgs channel once nix-build-uncached 1.0.0 is in stable | |
run: nix run -I 'nixpkgs=channel:nixos-unstable' nixpkgs.nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs | |
publish: | |
needs: tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger NUR update | |
run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=dustinblackman" |