mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
ci: build with Cargo before building with Ninja
This commit is contained in:
parent
73e80b0763
commit
3631e614b2
2 changed files with 12 additions and 7 deletions
|
@ -341,10 +341,13 @@ before_build:
|
|||
Set-FilesNeeded -Auto -Path $outputs -Reason "Build dependency graph"
|
||||
|
||||
build_script:
|
||||
- python tools\build.py
|
||||
- ps: Set-FilesNeeded -Auto -Reason "Build finished"
|
||||
# Build with Cargo first. Both builds produce a deno.exe in the same dir. We
|
||||
# want the final one (which gets tested and released) to be built by Ninja.
|
||||
- cargo build -vv --release
|
||||
- ps: Set-FilesNeeded -Auto -Reason "Cargo check finished"
|
||||
- ps: Set-FilesNeeded -Auto -Reason "Cargo build finished"
|
||||
|
||||
- python tools\build.py
|
||||
- ps: Set-FilesNeeded -Auto -Reason "Ninja build finished"
|
||||
|
||||
test_script:
|
||||
- python tools\lint.py
|
||||
|
|
10
.travis.yml
10
.travis.yml
|
@ -73,15 +73,17 @@ script:
|
|||
./tools/build.py -C target/debug -j2 test_cc
|
||||
./target/debug/test_cc
|
||||
|
||||
- |-
|
||||
# Build deno.exe with Cargo first. Both builds write their output to the same
|
||||
# directory. We want the final one (which gets tested and released) to be
|
||||
# built by Ninja.
|
||||
cargo build --release -vv -j2
|
||||
|
||||
- |-
|
||||
# Release build and test
|
||||
./tools/build.py -C target/release -j2
|
||||
DENO_BUILD_MODE=release ./tools/test.py
|
||||
|
||||
- |-
|
||||
# Cargo check
|
||||
cargo build --release -vv -j2
|
||||
|
||||
before_deploy:
|
||||
- gzip -c target/release/deno > target/release/deno_${TRAVIS_OS_NAME}_x64.gz
|
||||
deploy:
|
||||
|
|
Loading…
Add table
Reference in a new issue