Skip to content

Commit dd5349d

Browse files
committed
ci
1 parent b03383f commit dd5349d

File tree

11 files changed

+1365
-2862
lines changed

11 files changed

+1365
-2862
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Setup Node Environment"
2+
description: "Set up Node.js with npm caching"
3+
4+
inputs:
5+
working-directory:
6+
description: "Working directory for npm install"
7+
required: true
8+
9+
runs:
10+
using: "composite"
11+
steps:
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: "20"
16+
cache: "npm"
17+
cache-dependency-path: ${{ inputs.working-directory }}/package-lock.json
18+
19+
- name: Install dependencies
20+
shell: bash
21+
working-directory: ${{ inputs.working-directory }}
22+
run: npm install --include=dev
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Setup Rust Environment"
2+
description: "Set up Rust with mold linker and caching"
3+
4+
inputs:
5+
mold-version:
6+
description: "Mold linker version"
7+
required: false
8+
default: "2.34.1"
9+
cache-key:
10+
description: "Cache key suffix"
11+
required: true
12+
working-directory:
13+
description: "Working directory for cargo commands"
14+
required: false
15+
default: "."
16+
17+
runs:
18+
using: "composite"
19+
steps:
20+
- name: Setup Rust cache
21+
uses: actions/cache@v4
22+
with:
23+
path: |
24+
~/.cargo/bin/
25+
~/.cargo/registry/index/
26+
~/.cargo/registry/cache/
27+
~/.cargo/git/db/
28+
target/
29+
key: ${{ runner.os }}-cargo-${{ inputs.cache-key }}-${{ hashFiles('**/Cargo.lock') }}
30+
restore-keys: |
31+
${{ runner.os }}-cargo-${{ inputs.cache-key }}-
32+
${{ runner.os }}-cargo-
33+
34+
- name: Setup mold linker
35+
uses: rui314/setup-mold@v1
36+
with:
37+
mold-version: ${{ inputs.mold-version }}

0 commit comments

Comments
 (0)