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:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
env:
|
||||||
|
SCCACHE_GHA_ENABLED: true
|
||||||
|
RUSTC_WRAPPER: sccache
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
clippy:
|
clippy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -23,6 +27,9 @@ jobs:
|
||||||
prefix-key: rust
|
prefix-key: rust
|
||||||
shared-key: ubuntu-latest@debug
|
shared-key: ubuntu-latest@debug
|
||||||
|
|
||||||
|
- name: Run sccache-cache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.6
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: cargo clippy --all
|
run: cargo clippy --all
|
||||||
|
|
||||||
|
|
@ -43,6 +50,9 @@ jobs:
|
||||||
prefix-key: rust
|
prefix-key: rust
|
||||||
shared-key: ubuntu-latest@debug
|
shared-key: ubuntu-latest@debug
|
||||||
|
|
||||||
|
- name: Run sccache-cache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.6
|
||||||
|
|
||||||
- name: Rustfmt
|
- name: Rustfmt
|
||||||
run: cargo +nightly fmt --all -- --check
|
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 * * *"
|
- cron: "0 */6 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
SCCACHE_GHA_ENABLED: true
|
||||||
|
RUSTC_WRAPPER: sccache
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-unix:
|
build-unix:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -41,6 +45,9 @@ jobs:
|
||||||
prefix-key: rust
|
prefix-key: rust
|
||||||
shared-key: ${{ matrix.target }}@release
|
shared-key: ${{ matrix.target }}@release
|
||||||
|
|
||||||
|
- name: Run sccache-cache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.6
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./scripts/build.sh ${{ matrix.target }}
|
run: ./scripts/build.sh ${{ matrix.target }}
|
||||||
|
|
||||||
|
|
@ -71,6 +78,9 @@ jobs:
|
||||||
prefix-key: rust
|
prefix-key: rust
|
||||||
shared-key: ${{ matrix.target }}@release
|
shared-key: ${{ matrix.target }}@release
|
||||||
|
|
||||||
|
- name: Run sccache-cache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.6
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
YAZI_GEN_COMPLETIONS: true
|
YAZI_GEN_COMPLETIONS: true
|
||||||
|
|
@ -119,6 +129,9 @@ jobs:
|
||||||
prefix-key: rust
|
prefix-key: rust
|
||||||
shared-key: ${{ matrix.target }}@release
|
shared-key: ${{ matrix.target }}@release
|
||||||
|
|
||||||
|
- name: Run sccache-cache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.6
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./scripts/build.sh ${{ matrix.target }}
|
run: ./scripts/build.sh ${{ matrix.target }}
|
||||||
|
|
||||||
|
|
@ -144,6 +157,9 @@ jobs:
|
||||||
prefix-key: rust
|
prefix-key: rust
|
||||||
shared-key: ${{ matrix.target }}@release
|
shared-key: ${{ matrix.target }}@release
|
||||||
|
|
||||||
|
- name: Run sccache-cache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.6
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: snapcore/action-build@v1
|
uses: snapcore/action-build@v1
|
||||||
|
|
||||||
|
|
|
||||||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
|
@ -7,6 +7,8 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
SCCACHE_GHA_ENABLED: true
|
||||||
|
RUSTC_WRAPPER: sccache
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -27,6 +29,9 @@ jobs:
|
||||||
prefix-key: rust
|
prefix-key: rust
|
||||||
shared-key: ${{ matrix.os }}@debug
|
shared-key: ${{ matrix.os }}@debug
|
||||||
|
|
||||||
|
- name: Run sccache-cache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.6
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue