forked from Schniz/fnm
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (59 loc) · 1.74 KB
/
debug.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
name: "debug"
on:
workflow_dispatch:
concurrency:
group: debug
cancel-in-progress: true
jobs:
e2e_windows_debug:
runs-on: windows-latest
name: "e2e/windows/debug"
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commit_hash }}
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: rust.yml
workflow_conclusion: ""
branch: ${{ env.GITHUB_REF }}
name: "fnm-windows"
path: "target/release"
if_no_artifact_found: ignore
- uses: hecrj/setup-rust-action@v1
if: steps.download-artifact.outputs.artifact-found == false
with:
rust-version: stable
- uses: Swatinem/rust-cache@v2
if: steps.download-artifact.outputs.artifact-found == false
- name: Build release binary
if: steps.download-artifact.outputs.artifact-found == false
run: cargo build --release
env:
RUSTFLAGS: "-C target-feature=+crt-static"
- uses: pnpm/[email protected]
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 16.x
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install
- name: 🐛 Debug Build
if: always()
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true