summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-09-22 17:15:04 +0200
committerGitHub <noreply@github.com>2021-09-22 17:15:04 +0200
commiteddae41482588f762e67cb232da3c3a30524c233 (patch)
tree2fa9237d407b5350e3c3c10c494baf72216ee798
parent20692f3e844816d7d4a4f4fdfbfe30e416822350 (diff)
ci: experiment mac & windows debug builds (#11884)
Will be tweaked, but possibly have this "fastci" profile for further optimizations
-rw-r--r--.github/workflows/ci.yml36
1 files changed, 31 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index bc0d1bf51..0ba17a65d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,9 +15,15 @@ jobs:
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
- os: ${{ github.repository == 'denoland/deno' && 'ubuntu-latest-xl' || 'ubuntu-latest' }}
job: test
@@ -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)
@@ -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"