mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
d33dc4ff01
commit
ac9d7b3226
3 changed files with 31 additions and 0 deletions
10
.github/workflows/check.yml
vendored
10
.github/workflows/check.yml
vendored
|
|
@ -6,6 +6,10 @@ on:
|
|||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: true
|
||||
RUSTC_WRAPPER: sccache
|
||||
|
||||
jobs:
|
||||
clippy:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -23,6 +27,9 @@ jobs:
|
|||
prefix-key: rust
|
||||
shared-key: ubuntu-latest@debug
|
||||
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.6
|
||||
|
||||
- name: Clippy
|
||||
run: cargo clippy --all
|
||||
|
||||
|
|
@ -43,6 +50,9 @@ jobs:
|
|||
prefix-key: rust
|
||||
shared-key: ubuntu-latest@debug
|
||||
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.6
|
||||
|
||||
- name: Rustfmt
|
||||
run: cargo +nightly fmt --all -- --check
|
||||
|
||||
|
|
|
|||
16
.github/workflows/draft.yml
vendored
16
.github/workflows/draft.yml
vendored
|
|
@ -8,6 +8,10 @@ on:
|
|||
- cron: "0 */6 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: true
|
||||
RUSTC_WRAPPER: sccache
|
||||
|
||||
jobs:
|
||||
build-unix:
|
||||
strategy:
|
||||
|
|
@ -41,6 +45,9 @@ jobs:
|
|||
prefix-key: rust
|
||||
shared-key: ${{ matrix.target }}@release
|
||||
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.6
|
||||
|
||||
- name: Build
|
||||
run: ./scripts/build.sh ${{ matrix.target }}
|
||||
|
||||
|
|
@ -71,6 +78,9 @@ jobs:
|
|||
prefix-key: rust
|
||||
shared-key: ${{ matrix.target }}@release
|
||||
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.6
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
YAZI_GEN_COMPLETIONS: true
|
||||
|
|
@ -119,6 +129,9 @@ jobs:
|
|||
prefix-key: rust
|
||||
shared-key: ${{ matrix.target }}@release
|
||||
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.6
|
||||
|
||||
- name: Build
|
||||
run: ./scripts/build.sh ${{ matrix.target }}
|
||||
|
||||
|
|
@ -144,6 +157,9 @@ jobs:
|
|||
prefix-key: rust
|
||||
shared-key: ${{ matrix.target }}@release
|
||||
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.6
|
||||
|
||||
- name: Build
|
||||
uses: snapcore/action-build@v1
|
||||
|
||||
|
|
|
|||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
|
@ -7,6 +7,8 @@ on:
|
|||
branches: [main]
|
||||
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: true
|
||||
RUSTC_WRAPPER: sccache
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
|
|
@ -27,6 +29,9 @@ jobs:
|
|||
prefix-key: rust
|
||||
shared-key: ${{ matrix.os }}@debug
|
||||
|
||||
- name: Run sccache-cache
|
||||
uses: mozilla-actions/sccache-action@v0.0.6
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue