Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo build #1296

Merged
merged 5 commits into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: build with Cargo before building with Ninja
  • Loading branch information
piscisaureus committed Dec 19, 2018
commit 3631e614b2f21bc3bac19d4998a943ab51452b5b
9 changes: 6 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down