Skip to content

Commit

Permalink
ci(cache): tweak windows
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed May 26, 2024
1 parent 545b718 commit 1fad4e1
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ jobs:
components: clippy

- name: Rust version
if: ${{ ! startsWith(matrix.os, 'windows-') }}
id: rustc-version
run: |
echo "rustc=$(rustc --version)" >> "$GITHUB_OUTPUT"
- name: Rust Cache
if: ${{ ! startsWith(matrix.os, 'windows-') }}
id: cargo-cache
uses: actions/cache@v4
with:
Expand All @@ -38,6 +40,21 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-clippy-${{ steps.rustc-version.outputs.rustc }}-${{ hashFiles('**/Cargo.lock') }}
- name: Rust version
if: ${{ startsWith(matrix.os, 'windows-') }}
id: win-rustc-version
run: echo "rustc=$(rustc --version)" >> ${env:GITHUB_OUTPUT}
- name: Rust Cache
if: ${{ startsWith(matrix.os, 'windows-') }}
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-clippy-${{ steps.win-rustc-version.outputs.rustc }}-${{ hashFiles('**/Cargo.lock') }}

- name: Install Dbus
if: startsWith(matrix.os, 'ubuntu-')
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,12 @@ jobs:
targets: ${{ matrix.target }}

- name: Rust version
if: ${{ ! startsWith(matrix.os, 'windows-') }}
id: rustc-version
run: |
echo "rustc=$(rustc --version)" >> "$GITHUB_OUTPUT"
- name: Rust Cache
id: cargo-cache
if: ${{ ! startsWith(matrix.os, 'windows-') }}
uses: actions/cache@v4
with:
path: |
Expand All @@ -194,6 +195,22 @@ jobs:
target/
key: ${{ runner.os }}-build-${{ steps.rustc-version.outputs.rustc }}-${{ hashFiles('**/Cargo.lock') }}

- name: Rust version
if: ${{ startsWith(matrix.os, 'windows-') }}
id: win-rustc-version
run: echo "rustc=$(rustc --version)" >> ${env:GITHUB_OUTPUT}
- name: Rust Cache
if: ${{ startsWith(matrix.os, 'windows-') }}
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-build-${{ steps.win-rustc-version.outputs.rustc }}-${{ hashFiles('**/Cargo.lock') }}

- name: Install Dbus
if: ${{ !matrix.cross && startsWith(matrix.os, 'ubuntu-') }}
run: sudo apt update && sudo apt install libdbus-1-dev pkg-config
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ jobs:
toolchain: nightly

- name: Rust version
if: ${{ ! startsWith(matrix.os, 'windows-') }}
id: rustc-version
run: |
echo "rustc=$(rustc --version)" >> "$GITHUB_OUTPUT"
- name: Rust version
if: ${{ startsWith(matrix.os, 'windows-') }}
id: win-rustc-version
run: echo "rustc=$(rustc --version)" >> ${env:GITHUB_OUTPUT}

- name: Linux Cache leetcode
if: startsWith(matrix.os, 'ubuntu-')
Expand Down Expand Up @@ -57,7 +62,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-test-${{ steps.rustc-version.outputs.rustc }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-test-${{ steps.win-rustc-version.outputs.rustc }}-${{ hashFiles('**/Cargo.lock') }}

- name: Macos Cache leetcode
if: startsWith(matrix.os, 'macos-')
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ session = ""

- If neither of the above two items is filled in,
and then use this order
_Firefox_ -> _Librewolf_ -> _Chrome_ -> _Edge_ -> _Chromium_
-> _Brave_ -> _Yandex_ -> _Vivaldi_ -> _Opera_ -> _OperaGX_ -> _CocCoc_
_`Firefox`_ -> _`Librewolf`_ -> _`Chrome`_ -> _`Edge`_ -> _`Chromium`_
-> _`Brave`_ -> _`Yandex`_ -> _`Vivaldi`_ -> _`Opera`_ -> _`OperaGX`_ -> _`CocCoc`_
try to get cookies.

### Keymap
Expand Down

0 comments on commit 1fad4e1

Please sign in to comment.