summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.generate.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-15 21:47:15 -0400
committerGitHub <noreply@github.com>2023-03-15 21:47:15 -0400
commit82ee73d795eb0d1c9b3ee226f069388b806a19b9 (patch)
tree1c5f30095676f741ec036e676d129d5aba099066 /.github/workflows/ci.generate.ts
parentc1eba16b84c5bba4f7fdf05beb6ccf5e0fd1da16 (diff)
chore(ci): cache test debug ubuntu-22.04-xl build (#18216)
Diffstat (limited to '.github/workflows/ci.generate.ts')
-rwxr-xr-x.github/workflows/ci.generate.ts35
1 files changed, 14 insertions, 21 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index 35367adb8..21457de4b 100755
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -220,7 +220,7 @@ const ci = {
{
os: Runners.macos,
job: "test",
- profile: "fastci",
+ profile: "debug",
},
{
os: Runners.macos,
@@ -231,7 +231,7 @@ const ci = {
{
os: Runners.windows,
job: "test",
- profile: "fastci",
+ profile: "debug",
},
{
os: Runners.windows,
@@ -496,15 +496,7 @@ const ci = {
},
{
name: "Build debug",
- if: [
- "(matrix.job == 'test' || matrix.job == 'bench') &&",
- "matrix.profile == 'debug'",
- ].join("\n"),
- run: "cargo build --locked --all-targets",
- },
- {
- name: "Build fastci",
- if: "(matrix.job == 'test' && matrix.profile == 'fastci')",
+ if: "matrix.job == 'test' && matrix.profile == 'debug'",
run: "cargo build --locked --all-targets",
env: { CARGO_PROFILE_DEV_DEBUG: 0 },
},
@@ -607,22 +599,24 @@ const ci = {
name: "Test debug",
if: [
"matrix.job == 'test' && matrix.profile == 'debug' &&",
- "!startsWith(github.ref, 'refs/tags/')",
+ "!startsWith(github.ref, 'refs/tags/') && startsWith(matrix.os, 'ubuntu')",
].join("\n"),
run: "cargo test --locked",
+ env: { CARGO_PROFILE_DEV_DEBUG: 0 },
},
{
- name: "Test fastci",
- if: "matrix.job == 'test' && matrix.profile == 'fastci'",
+ name: "Test debug (fast)",
+ if: [
+ "matrix.job == 'test' && matrix.profile == 'debug' && ",
+ "!startsWith(matrix.os, 'ubuntu')",
+ ].join("\n"),
run: [
// Run unit then integration tests. Skip doc tests here
// since they are sometimes very slow on Mac.
"cargo test --locked --lib",
"cargo test --locked --test '*'",
].join("\n"),
- env: {
- CARGO_PROFILE_DEV_DEBUG: 0,
- },
+ env: { CARGO_PROFILE_DEV_DEBUG: 0 },
},
{
name: "Test release",
@@ -766,7 +760,7 @@ const ci = {
{
name: "Build product size info",
if:
- "matrix.job != 'lint' && matrix.profile != 'fastci' && github.repository == 'denoland/deno' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))",
+ "matrix.job != 'lint' && matrix.profile != 'debug' && github.repository == 'denoland/deno' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))",
run: [
'du -hd1 "./target/${{ matrix.profile }}"',
'du -ha "./target/${{ matrix.profile }}/deno"',
@@ -847,11 +841,10 @@ const ci = {
},
},
{
- // In main branch, always creates fresh cache
+ // In main branch, always create a fresh cache
name: "Save cache build output (main)",
uses: "actions/cache/save@v3",
- if:
- "(matrix.profile == 'release' || matrix.profile == 'fastci') && github.ref == 'refs/heads/main'",
+ if: "matrix.job == 'test' && github.ref == 'refs/heads/main'",
with: {
path: [
"./target",