Skip to content

Commit

Permalink
ci: experiment mac & windows debug builds (#11884)
Browse files Browse the repository at this point in the history
Will be tweaked, but possibly have this "fastci" profile for further optimizations
  • Loading branch information
AaronO authored Sep 22, 2021
1 parent 20692f3 commit eddae41
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -329,11 +335,19 @@ jobs:
(matrix.job == 'test' || matrix.job == 'bench') &&
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)
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit eddae41

Please sign in to comment.