mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
nixpkgs-fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: cachix/install-nix-action@v14
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: experimental-features = nix-command
|
|
- uses: actions/checkout@v2.4.0
|
|
- name: Check format
|
|
run: ./check-fmt
|
|
|
|
matrix_generate:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
steps:
|
|
- uses: actions/checkout@v2.4.0
|
|
- uses: cachix/install-nix-action@v14
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: experimental-features = nix-command
|
|
- id: set-matrix
|
|
run: ./.github/generate-matrix.py
|
|
|
|
builds:
|
|
needs: matrix_generate
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix: ${{fromJSON(needs.matrix_generate.outputs.matrix)}}
|
|
steps:
|
|
- uses: actions/checkout@v2.4.0
|
|
- uses: cachix/install-nix-action@v14
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: experimental-features = nix-command
|
|
- uses: cachix/cachix-action@v10
|
|
with:
|
|
name: poetry2nix
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
- run: nix-shell -p nix-build-uncached --run 'nix-build-uncached --keep-going --show-trace tests/default.nix -A ${{ matrix.attr }}'
|