This commit is contained in:
sxyazi 2024-11-13 11:37:48 +08:00
parent d33dc4ff01
commit ac9d7b3226
No known key found for this signature in database
3 changed files with 31 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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