mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
ci: experiment mac & windows debug builds (#11884)
Will be tweaked, but possibly have this "fastci" profile for further optimizations
This commit is contained in:
parent
20692f3e84
commit
eddae41482
1 changed files with 31 additions and 5 deletions
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
|
@ -13,9 +13,15 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: macos-10.15
|
||||
job: test
|
||||
profile: fastci
|
||||
- os: macos-10.15
|
||||
job: test
|
||||
profile: release
|
||||
- os: windows-2019
|
||||
job: test
|
||||
profile: fastci
|
||||
- os: windows-2019
|
||||
job: test
|
||||
profile: release
|
||||
|
@ -330,10 +336,18 @@ jobs:
|
|||
matrix.profile == 'debug' && !matrix.use_sysroot
|
||||
run: cargo build --locked --all-targets
|
||||
|
||||
- name: Build fastci
|
||||
if: (matrix.job == 'test' && matrix.profile == 'fastci')
|
||||
run: cargo build --locked --all-targets
|
||||
env:
|
||||
CARGO_PROFILE_DEV_DEBUG: 0
|
||||
|
||||
- name: Build release
|
||||
if: |
|
||||
(matrix.job == 'test' || matrix.job == 'bench') &&
|
||||
matrix.profile == 'release' && !matrix.use_sysroot
|
||||
matrix.profile == 'release' && !matrix.use_sysroot &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||
run: cargo build --release --locked --all-targets
|
||||
|
||||
- name: Build release (in sysroot)
|
||||
|
@ -359,7 +373,9 @@ jobs:
|
|||
if: |
|
||||
startsWith(matrix.os, 'macOS') &&
|
||||
matrix.job == 'test' &&
|
||||
matrix.profile == 'release'
|
||||
matrix.profile == 'release' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||
run: |
|
||||
cd target/release
|
||||
zip -r deno-x86_64-apple-darwin.zip deno
|
||||
|
@ -368,7 +384,9 @@ jobs:
|
|||
if: |
|
||||
startsWith(matrix.os, 'windows') &&
|
||||
matrix.job == 'test' &&
|
||||
matrix.profile == 'release'
|
||||
matrix.profile == 'release' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||
run: |
|
||||
Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno-x86_64-pc-windows-msvc.zip
|
||||
|
||||
|
@ -403,10 +421,18 @@ jobs:
|
|||
cargo test --locked --doc
|
||||
cargo test --locked
|
||||
|
||||
- name: Test fastci
|
||||
if: (matrix.job == 'test' && matrix.profile == 'fastci')
|
||||
run: cargo test --locked
|
||||
env:
|
||||
CARGO_PROFILE_DEV_DEBUG: 0
|
||||
|
||||
- name: Test release
|
||||
if: |
|
||||
matrix.job == 'test' && matrix.profile == 'release' &&
|
||||
!matrix.use_sysroot
|
||||
!matrix.use_sysroot &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||
run: cargo test --release --locked
|
||||
|
||||
- name: Test release (in sysroot)
|
||||
|
@ -517,7 +543,7 @@ jobs:
|
|||
git push origin gh-pages
|
||||
|
||||
- name: Build product size info
|
||||
if: matrix.job != 'lint'
|
||||
if: matrix.job != 'lint' && matrix.profile != 'fastci'
|
||||
run: |
|
||||
du -hd1 "./target/${{ matrix.profile }}"
|
||||
du -ha "./target/${{ matrix.profile }}/deno"
|
||||
|
|
Loading…
Reference in a new issue