Skip to content

Commit 7316b90

Browse files
committed
init
0 parents  commit 7316b90

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/review.yml

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

0 commit comments

Comments
 (0)