1
0
Fork 0
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:
Aaron O'Mullan 2021-09-22 17:15:04 +02:00 committed by GitHub
parent 20692f3e84
commit eddae41482
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,9 +13,15 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- os: macos-10.15
job: test
profile: fastci
- os: macos-10.15 - os: macos-10.15
job: test job: test
profile: release profile: release
- os: windows-2019
job: test
profile: fastci
- os: windows-2019 - os: windows-2019
job: test job: test
profile: release profile: release
@ -329,11 +335,19 @@ jobs:
(matrix.job == 'test' || matrix.job == 'bench') && (matrix.job == 'test' || matrix.job == 'bench') &&
matrix.profile == 'debug' && !matrix.use_sysroot matrix.profile == 'debug' && !matrix.use_sysroot
run: cargo build --locked --all-targets 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 - name: Build release
if: | if: |
(matrix.job == 'test' || matrix.job == 'bench') && (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 run: cargo build --release --locked --all-targets
- name: Build release (in sysroot) - name: Build release (in sysroot)
@ -359,7 +373,9 @@ jobs:
if: | if: |
startsWith(matrix.os, 'macOS') && startsWith(matrix.os, 'macOS') &&
matrix.job == 'test' && matrix.job == 'test' &&
matrix.profile == 'release' matrix.profile == 'release' &&
github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
run: | run: |
cd target/release cd target/release
zip -r deno-x86_64-apple-darwin.zip deno zip -r deno-x86_64-apple-darwin.zip deno
@ -368,7 +384,9 @@ jobs:
if: | if: |
startsWith(matrix.os, 'windows') && startsWith(matrix.os, 'windows') &&
matrix.job == 'test' && matrix.job == 'test' &&
matrix.profile == 'release' matrix.profile == 'release' &&
github.repository == 'denoland/deno' &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
run: | run: |
Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno-x86_64-pc-windows-msvc.zip 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 --doc
cargo test --locked 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 - name: Test release
if: | if: |
matrix.job == 'test' && matrix.profile == 'release' && 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 run: cargo test --release --locked
- name: Test release (in sysroot) - name: Test release (in sysroot)
@ -517,7 +543,7 @@ jobs:
git push origin gh-pages git push origin gh-pages
- name: Build product size info - name: Build product size info
if: matrix.job != 'lint' if: matrix.job != 'lint' && matrix.profile != 'fastci'
run: | run: |
du -hd1 "./target/${{ matrix.profile }}" du -hd1 "./target/${{ matrix.profile }}"
du -ha "./target/${{ matrix.profile }}/deno" du -ha "./target/${{ matrix.profile }}/deno"