2024-06-25 23:07:09 +00:00
|
|
|
name: "Check shell"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
x86_64-linux:
|
2024-08-01 03:28:40 +00:00
|
|
|
name: shell-check-x86_64-linux
|
2024-06-25 23:07:09 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-09-30 12:02:46 +00:00
|
|
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
2024-06-25 23:07:09 +00:00
|
|
|
with:
|
|
|
|
# pull_request_target checks out the base branch by default
|
|
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
2024-09-30 11:58:38 +00:00
|
|
|
- uses: cachix/install-nix-action@9f70348d77d0422624097c4b7a75563948901306 # v29
|
2024-06-25 23:07:09 +00:00
|
|
|
- name: Build shell
|
|
|
|
run: nix-build shell.nix
|
|
|
|
|
|
|
|
aarch64-darwin:
|
2024-08-01 03:28:40 +00:00
|
|
|
name: shell-check-aarch64-darwin
|
2024-06-25 23:07:09 +00:00
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2024-09-30 12:02:46 +00:00
|
|
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
2024-06-25 23:07:09 +00:00
|
|
|
with:
|
|
|
|
# pull_request_target checks out the base branch by default
|
|
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
2024-09-30 11:58:38 +00:00
|
|
|
- uses: cachix/install-nix-action@9f70348d77d0422624097c4b7a75563948901306 # v29
|
2024-06-25 23:07:09 +00:00
|
|
|
- name: Build shell
|
|
|
|
run: nix-build shell.nix
|