diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d9b8ac..2702128 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ name: CI on: push: branches: [main] + tags: ["v*"] pull_request: workflow_dispatch: @@ -36,6 +37,7 @@ jobs: msrv: name: MSRV (Rust 1.94.1) + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-24.04 timeout-minutes: 30 # Rust 1.94 remains the compatibility contract. Keep this lane separate @@ -109,6 +111,7 @@ jobs: runs-on: ubuntu-24.04 timeout-minutes: 30 env: + RUSTFLAGS: "-C target-cpu=x86-64-v2" CARGO_INCREMENTAL: "1" steps: - uses: actions/checkout@v7 @@ -143,6 +146,7 @@ jobs: wasm-check: name: WASM link (${{ matrix.package }}) + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-24.04 timeout-minutes: 30 strategy: @@ -168,6 +172,7 @@ jobs: runs-on: ubuntu-24.04 timeout-minutes: 30 env: + RUSTFLAGS: "-C target-cpu=x86-64-v2" SCCACHE_DIR: ${{ github.workspace }}/.sccache/unit-tests SCCACHE_CACHE_SIZE: "1G" RUSTC_WRAPPER: "sccache" @@ -197,6 +202,7 @@ jobs: audit: name: Dependency audit + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-24.04 timeout-minutes: 20 steps: @@ -220,6 +226,7 @@ jobs: leptos-build: name: Leptos production builds + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-24.04 timeout-minutes: 45 env: @@ -273,6 +280,7 @@ jobs: docker-build: name: Docker image (${{ matrix.image }}) + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-24.04 timeout-minutes: 45 strategy: @@ -306,6 +314,7 @@ jobs: e2e-tests: name: Browser + integration E2E + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-24.04 timeout-minutes: 60 env: