Skip to content

Commit a426a09

Browse files
committed
init
0 parents  commit a426a09

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/review.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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: >-
47+
${{ (matrix.system == 'x86_64-linux' && inputs.x86_64-linux)
48+
|| (matrix.system == 'aarch64-linux' && inputs.aarch64-linux)
49+
|| (matrix.system == 'x86_64-darwin' && inputs.x86_64-darwin)
50+
|| (matrix.system == 'aarch64-darwin' && inputs.aarch64-darwin) }}
51+
runs-on: >-
52+
${{ (matrix.system == 'x86_64-linux' && 'ubuntu-latest')
53+
|| (matrix.system == 'aarch64-linux' && 'ubuntu-24.04-arm')
54+
|| (matrix.system == 'x86_64-darwin' && 'macos-13')
55+
|| (matrix.system == 'aarch64-darwin' && 'macos-latest') }}
56+
steps:
57+
- uses: DeterminateSystems/nix-installer-action@v16
58+
- uses: actions/checkout@v4
59+
with:
60+
repository: NixOS/nixpkgs
61+
- run: nix run ${{ inputs.nixpkgs-review }} -- pr ${{ inputs.pr }} --no-shell
62+
env:
63+
GITHUB_TOKEN: ${{ github.token }}
64+
65+
post-result:
66+
runs-on: ubuntu-latest
67+
needs: [review]
68+
steps:
69+
- run: echo test

0 commit comments

Comments
 (0)