-
Notifications
You must be signed in to change notification settings - Fork 20
69 lines (66 loc) · 1.92 KB
/
review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: review
on:
workflow_dispatch:
inputs:
pr:
description: "Pull Request Number"
required: true
type: number
nixpkgs-review:
description: "nixpkgs-review flake"
required: true
type: string
default: github:Mic92/nixpkgs-review
x86_64-linux:
description: "Run on x86_64-linux"
required: true
type: boolean
default: true
aarch64-linux:
description: "Run on aarch64-linux"
required: true
type: boolean
default: true
x86_64-darwin:
description: "Run on x86_64-darwin"
required: true
type: boolean
default: true
aarch64-darwin:
description: "Run on aarch64-darwin"
required: true
type: boolean
default: true
jobs:
review:
strategy:
matrix:
system:
- x86_64-linux
- aarch64-linux
- x86_64-darwin
- aarch64-darwin
fail-fast: false
if: >-
${{ (matrix.system == 'x86_64-linux' && inputs.x86_64-linux)
|| (matrix.system == 'aarch64-linux' && inputs.aarch64-linux)
|| (matrix.system == 'x86_64-darwin' && inputs.x86_64-darwin)
|| (matrix.system == 'aarch64-darwin' && inputs.aarch64-darwin) }}
runs-on: >-
${{ (matrix.system == 'x86_64-linux' && 'ubuntu-latest')
|| (matrix.system == 'aarch64-linux' && 'ubuntu-24.04-arm')
|| (matrix.system == 'x86_64-darwin' && 'macos-13')
|| (matrix.system == 'aarch64-darwin' && 'macos-latest') }}
steps:
- uses: DeterminateSystems/nix-installer-action@v16
- uses: actions/checkout@v4
with:
repository: NixOS/nixpkgs
- run: nix run ${{ inputs.nixpkgs-review }} -- pr ${{ inputs.pr }} --no-shell
env:
GITHUB_TOKEN: ${{ github.token }}
post-result:
runs-on: ubuntu-latest
needs: [review]
steps:
- run: echo test