-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.56 KB
/
Copy pathcopilot-setup-steps.yml
File metadata and controls
41 lines (40 loc) · 1.56 KB
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
on:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- .github/workflows/copilot-setup-steps.yml
workflow_dispatch:
jobs:
copilot-setup-steps:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
extra-substituters = https://cache.garnix.io
extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
- uses: DeterminateSystems/magic-nix-cache-action@v13
# - uses: lewagon/wait-on-check-action@v1.5.0
# with:
# ref: ${{ github.event.pull_request.head.sha || github.sha }}
# check-regexp: 'Evaluate flake.nix'
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# fail-on-no-checks: false
# allowed-conclusions: success,failure,cancelled,skipped,timed_out,neutral
# - uses: lewagon/wait-on-check-action@v1.5.0
# with:
# ref: ${{ github.event.pull_request.head.sha || github.sha }}
# check-regexp: 'devShell.*'
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# fail-on-no-checks: false
# allowed-conclusions: success,failure,cancelled,skipped,timed_out,neutral
- run: nix develop --command cargo check # Install dependencies
continue-on-error: true