Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/_ci-crypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2
with:
key: crypto-web
save-if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '22'
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ jobs:
with: {persist-credentials: false}
- uses: ./.github/actions/native-desktop
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0
with: {key: gpui-feature-check}
with:
key: gpui-feature-check
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Check and test the native desktop host
run: |
cargo fmt --all -- --check
Expand All @@ -260,7 +262,7 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2
with:
shared-key: check
save-if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Check affected crates with Clippy and optional minimum Rust version
env:
CI_PLAN: ${{ needs.plan.outputs.plan }}
Expand All @@ -285,7 +287,7 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2
with:
shared-key: test-opt1
save-if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Run affected Rust tests except the exact heavy scenarios
env:
CI_PLAN: ${{ needs.plan.outputs.plan }}
Expand Down Expand Up @@ -317,7 +319,7 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2
with:
shared-key: test-opt1
save-if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Run the exact heavy Node scenarios
env:
CI_PLAN: ${{ needs.plan.outputs.plan }}
Expand Down Expand Up @@ -352,7 +354,7 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2
with:
key: delivery
save-if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
save-if: ${{ github.ref == 'refs/heads/main' }}
workspaces: |
. -> .artifacts/vdp/domain-target
crates/delivery/proof -> ../../../.artifacts/vdp/proof-target
Expand Down Expand Up @@ -419,7 +421,7 @@ jobs:
workspaces: |
. -> target
tests/fixtures/delivery-probe -> ../../../.artifacts/delivery-probe/target
save-if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.12'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
with:
targets: aarch64-linux-android,x86_64-linux-android
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1
with: {version: 11.9.0}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
key: gpui-native-${{ inputs.target }}
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Unpack the released runtime for this platform
id: runtime
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec
with: {targets: 'aarch64-apple-ios,aarch64-apple-ios-sim'}
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0
with: {cache-on-failure: true}
with:
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1
with: {version: 11.9.0}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
Expand Down Expand Up @@ -108,4 +110,3 @@ jobs:
.artifacts/ios/*.ipa.provenance.json
.artifacts/ios/release.json
if-no-files-found: error
retention-days: 14
2 changes: 2 additions & 0 deletions .github/workflows/release-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0
with:
key: ${{ runner.os == 'Windows' && 'windows-static-crt' || '' }}
# Tag runs restore main's caches but never save: a tag's cache serves only that tag.
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Select this platform's Python
run: printf 'PY=%s\n' "$(command -v python3 || command -v python)" >> "$GITHUB_ENV"
- uses: ./.github/actions/msvc-environment
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec
with: {targets: wasm32-unknown-unknown}
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1
with: {version: 11.9.0}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
Expand Down
Loading