mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
Statically link the C runtime library on Windows (#4469)
This commit is contained in:
parent
d143fe61bc
commit
449dbe5272
3 changed files with 10 additions and 8 deletions
2
.cargo/config
Normal file
2
.cargo/config
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[target.x86_64-pc-windows-msvc]
|
||||||
|
rustflags = ["-C", "target-feature=+crt-static"]
|
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -54,7 +54,7 @@ jobs:
|
||||||
if: startsWith(matrix.config.os, 'ubuntu') && matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') && github.repository == 'denoland/deno'
|
if: startsWith(matrix.config.os, 'ubuntu') && matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/') && github.repository == 'denoland/deno'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p target/release
|
mkdir -p target/release
|
||||||
tar --exclude=.cargo --exclude=".git*" --exclude=target --exclude=deno_typescript/typescript/tests --exclude=third_party/cpplint --exclude=third_party/node_modules --exclude=third_party/python_packages --exclude=third_party/prebuilt -czvf target/release/deno_src.tar.gz -C .. deno
|
tar --exclude=.cargo_home --exclude=".git*" --exclude=target --exclude=deno_typescript/typescript/tests --exclude=third_party/cpplint --exclude=third_party/node_modules --exclude=third_party/python_packages --exclude=third_party/prebuilt -czvf target/release/deno_src.tar.gz -C .. deno
|
||||||
|
|
||||||
- name: Install rust
|
- name: Install rust
|
||||||
uses: hecrj/setup-rust-action@v1
|
uses: hecrj/setup-rust-action@v1
|
||||||
|
@ -90,11 +90,11 @@ jobs:
|
||||||
|
|
||||||
- name: Configure cargo data directory
|
- name: Configure cargo data directory
|
||||||
# After this point, all cargo registry and crate data is stored in
|
# After this point, all cargo registry and crate data is stored in
|
||||||
# $GITHUB_WORKSPACE/.cargo. This allows us to cache only the files that
|
# $GITHUB_WORKSPACE/.cargo_home. This allows us to cache only the files
|
||||||
# are needed during the build process. Additionally, this works around
|
# that are needed during the build process. Additionally, this works
|
||||||
# a bug in the 'cache' action that causes directories outside of the
|
# around a bug in the 'cache' action that causes directories outside of
|
||||||
# workspace dir to be saved/restored incorrectly.
|
# the workspace dir to be saved/restored incorrectly.
|
||||||
run: echo "::set-env name=CARGO_HOME::$(pwd)/.cargo"
|
run: echo "::set-env name=CARGO_HOME::$(pwd)/.cargo_home"
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@master
|
uses: actions/cache@master
|
||||||
|
@ -104,7 +104,7 @@ jobs:
|
||||||
# so we cache only those subdirectories of target/{debug|release} that
|
# so we cache only those subdirectories of target/{debug|release} that
|
||||||
# contain the build output for crates that come from the registry.
|
# contain the build output for crates that come from the registry.
|
||||||
path: |-
|
path: |-
|
||||||
.cargo
|
.cargo_home
|
||||||
target/*/.*
|
target/*/.*
|
||||||
target/*/build
|
target/*/build
|
||||||
target/*/deps
|
target/*/deps
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,7 +2,7 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
*.swp
|
*.swp
|
||||||
|
|
||||||
/.cargo/
|
/.cargo_home/
|
||||||
/.idea/
|
/.idea/
|
||||||
/.vscode/
|
/.vscode/
|
||||||
gclient_config.py_entries
|
gclient_config.py_entries
|
||||||
|
|
Loading…
Reference in a new issue