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
1 change: 0 additions & 1 deletion .github/workflows/benchmark-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
- name: Restore Rust cache for yew packages
uses: Swatinem/rust-cache@v2
with:
shared-key: yew-packages
workspaces: |
yew-master
current-pr
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/benchmark-ssr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- name: Restore Rust cache for yew packages
uses: Swatinem/rust-cache@v2
with:
shared-key: yew-packages
workspaces: |
yew-master
current-pr
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Restore Rust cache for yew packages
uses: Swatinem/rust-cache@v2
with:
shared-key: yew-packages
save-if: ${{ github.ref == 'refs/heads/master' }}
workspaces: |
yew

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
shared-key: clippy
save-if: ${{ github.ref == 'refs/heads/master' }}

- name: Lint feature soundness
if: matrix.profile == 'dev'
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
shared-key: clippy
save-if: ${{ github.ref == 'refs/heads/master' }}

- name: Run clippy
run: |
Expand Down
39 changes: 22 additions & 17 deletions .github/workflows/main-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: Swatinem/rust-cache@v2
with:
shared-key: yew-packages

# for wasm-bindgen-cli, always use stable rust
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Install wasm-bindgen-cli
shell: bash
run: ./ci/install-wasm-bindgen-cli.sh

- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
targets: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

- name: Install wasm-bindgen-cli
shell: bash
run: ./ci/install-wasm-bindgen-cli.sh

- uses: browser-actions/setup-geckodriver@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -73,26 +74,26 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: Swatinem/rust-cache@v2
with:
shared-key: yew-packages

# for wasm-bindgen-cli, always use stable rust
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Install wasm-bindgen-cli
shell: bash
run: ./ci/install-wasm-bindgen-cli.sh

- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
targets: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

- name: Install wasm-bindgen-cli
shell: bash
run: ./ci/install-wasm-bindgen-cli.sh

- uses: browser-actions/setup-geckodriver@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -132,7 +133,7 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
shared-key: yew-packages
save-if: ${{ github.ref == 'refs/heads/master' }}

- name: Run native tests
env:
Expand Down Expand Up @@ -162,7 +163,7 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
shared-key: yew-packages
save-if: ${{ github.ref == 'refs/heads/master' }}

- name: Run tests
env:
Expand Down Expand Up @@ -197,6 +198,8 @@ jobs:
source ~/.bashrc

- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

- name: Run WASI tests for yew
run: |
Expand Down Expand Up @@ -232,6 +235,8 @@ jobs:
source ~/.bashrc

- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

- name: Build and run ${{ matrix.package }}
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/publish-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
components: rust-src

- uses: Swatinem/rust-cache@v2
with:
shared-key: publish-examples

- uses: jetli/trunk-action@v0.5.1
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/size-cmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ jobs:
components: rust-src
targets: wasm32-unknown-unknown

- name: Restore Rust cache for master
- name: Restore Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: size-compare

- name: Setup Trunk
uses: jetli/trunk-action@v0.5.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
shared-key: yew-packages
save-if: ${{ github.ref == 'refs/heads/master' }}

- uses: browser-actions/setup-geckodriver@latest
with:
Expand Down
Loading