1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

ci: don't use release mode for tests

The original thinking was that it would be quicker to reuse
the existing release mode deps, but I'm not sure if that is
still true, so let's test it to see.

At the time of writing, the test phase takes 8-12 minutes depending
on the OS, with most of that being compilation.
This commit is contained in:
Wez Furlong 2023-07-12 08:35:14 -07:00
parent 5d1136d29b
commit cc567ab464
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
43 changed files with 86 additions and 86 deletions

View File

@ -96,11 +96,11 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "centos7"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: |
source /opt/rh/devtoolset-9/enable
cargo nextest run --all --release --no-fail-fast
cargo nextest run --all --no-fail-fast
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -100,11 +100,11 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "centos7"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: |
source /opt/rh/devtoolset-9/enable
cargo nextest run --all --release --no-fail-fast
cargo nextest run --all --no-fail-fast
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -79,11 +79,11 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "centos7"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: |
source /opt/rh/devtoolset-9/enable
cargo nextest run --all --release --no-fail-fast
cargo nextest run --all --no-fail-fast
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -70,9 +70,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "centos8"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -74,9 +74,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "centos8"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -53,9 +53,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "centos8"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -70,9 +70,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "centos9"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -74,9 +74,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "centos9"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -53,9 +53,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "centos9"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -73,9 +73,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "debian10.3"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -77,9 +77,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "debian10.3"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -56,9 +56,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "debian10.3"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -73,9 +73,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "debian11"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -77,9 +77,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "debian11"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -56,9 +56,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "debian11"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -67,9 +67,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "fedora36"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -71,9 +71,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "fedora36"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -50,9 +50,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "fedora36"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -67,9 +67,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "fedora37"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -71,9 +71,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "fedora37"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -50,9 +50,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "fedora37"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -67,9 +67,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "fedora38"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -71,9 +71,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "fedora38"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -50,9 +50,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "fedora38"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -48,9 +48,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "macos"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast --target=x86_64-apple-darwin"
run: "cargo nextest run --all --no-fail-fast --target=x86_64-apple-darwin"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -51,9 +51,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "macos"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast --target=x86_64-apple-darwin"
run: "cargo nextest run --all --no-fail-fast --target=x86_64-apple-darwin"
- name: "Package"
env:
MACOS_APPLEID: ${{ secrets.MACOS_APPLEID }}

View File

@ -36,9 +36,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "macos"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast --target=x86_64-apple-darwin"
run: "cargo nextest run --all --no-fail-fast --target=x86_64-apple-darwin"
- name: "Package"
env:
MACOS_APPLEID: ${{ secrets.MACOS_APPLEID }}

View File

@ -70,9 +70,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "opensuse_leap"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -74,9 +74,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "opensuse_leap"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -53,9 +53,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "opensuse_leap"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -73,9 +73,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "opensuse_tumbleweed"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -77,9 +77,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "opensuse_tumbleweed"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -56,9 +56,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "opensuse_tumbleweed"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -78,9 +78,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "ubuntu20.04"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -82,9 +82,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "ubuntu20.04"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -58,9 +58,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "ubuntu20.04"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -73,9 +73,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "ubuntu22.04"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -77,9 +77,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "ubuntu22.04"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -56,9 +56,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "ubuntu22.04"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -44,9 +44,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "windows"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -48,9 +48,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "windows"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -34,9 +34,9 @@ jobs:
with:
crate: "cargo-nextest"
cache-key: "windows"
- name: "Test (Release mode)"
- name: "Test"
shell: bash
run: "cargo nextest run --all --release --no-fail-fast"
run: "cargo nextest run --all --no-fail-fast"
- name: "Package"
shell: bash
run: "bash ci/deploy.sh"

View File

@ -437,7 +437,7 @@ cargo build --all --release""",
]
def test_all_release(self):
run = "cargo nextest run --all --release --no-fail-fast"
run = "cargo nextest run --all --no-fail-fast"
if "macos" in self.name:
run += " --target=x86_64-apple-darwin"
if self.name == "centos7":
@ -447,7 +447,7 @@ cargo build --all --release""",
InstallCrateStep("cargo-nextest", key=self.name),
# Run tests
RunStep(
name="Test (Release mode)",
name="Test",
run=run,
),
]