File tree 3 files changed +29
-10
lines changed
.github/actions/setup-rust
3 files changed +29
-10
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,18 @@ rustflags = ["-C", "target-feature=+crt-static"]
22
22
[target .aarch64-pc-windows-msvc ]
23
23
linker = " rust-lld"
24
24
25
- [target .aarch64-apple-darwin ]
25
+ [target .'cfg(target_os = "macos")' ]
26
26
linker = " rust-lld"
27
27
28
- [target .aarch64-unknown-linux-gnu ]
29
- linker = " aarch64-linux-gnu-gcc"
28
+ [target .'cfg(all(target_os = "linux", target_env = "gnu"))' ]
29
+ rustflags = [
30
+ " --cfg" ,
31
+ " tokio_unstable" ,
32
+ " -Zshare-generics=y" ,
33
+ " -Zthreads=8" ,
34
+ " -Csymbol-mangling-version=v0" ,
35
+ " -Clink-arg=-fuse-ld=lld" ,
36
+ ]
30
37
31
38
[target .aarch64-unknown-linux-musl ]
32
39
linker = " aarch64-linux-musl-gcc"
Original file line number Diff line number Diff line change 16
16
rustflags : ' '
17
17
cache : false
18
18
19
+ - name : ' Install LLD (LLVM Linker) for Linux'
20
+ if : runner.os == 'Linux'
21
+ shell : bash
22
+ run : sudo apt-get -y update && sudo apt-get install -y lld
23
+
19
24
- name : ' Add cargo problem matchers'
20
25
shell : bash
21
26
run : echo "::add-matcher::${{ github.action_path }}/matchers.json"
Original file line number Diff line number Diff line change 4
4
- All pull requests should be opened against ` canary ` .
5
5
- The changes on the ` canary ` branch are published to the ` @canary ` tag on npm regularly.
6
6
7
- To develop locally:
7
+ ## Dependencies
8
+
9
+ - Install Rust and Cargo via [ rustup] ( https://rustup.rs ) .
10
+ - Install the [ GitHub CLI] ( https://github.com/cli/cli#installation ) .
11
+ - Enable pnpm:
12
+ ```
13
+ corepack enable pnpm
14
+ ```
15
+ - (Linux) Install LLD, the LLVM linker:
16
+ ```
17
+ sudo apt install lld
18
+ ```
19
+
20
+ ## Local Development
8
21
9
- 1 . Install Rust and Cargo via [ rustup] ( https://rustup.rs ) .
10
- 1 . Install the [ GitHub CLI] ( https://github.com/cli/cli#installation ) .
11
22
1 . Clone the Next.js repository (download only recent commits for faster clone):
12
23
```
13
24
gh repo clone vercel/next.js -- --filter=blob:none --branch canary --single-branch
@@ -16,10 +27,6 @@ To develop locally:
16
27
```
17
28
git checkout -b MY_BRANCH_NAME origin/canary
18
29
```
19
- 1 . Enable pnpm:
20
- ```
21
- corepack enable pnpm
22
- ```
23
30
1 . Install the dependencies with:
24
31
```
25
32
pnpm install
You can’t perform that action at this time.
0 commit comments