Update ci.yml
parent
3afdb5c5dd
commit
99d8fa619f
|
|
@ -25,9 +25,12 @@ jobs:
|
||||||
Cargo.toml
|
Cargo.toml
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
crates/**
|
crates/**
|
||||||
|
outputs:
|
||||||
|
changed: ${{ steps.changed-files.outputs.any_changed }}
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
if: jobs.changes.steps.changed-files.outputs.any_changed == 'true'
|
needs: changes
|
||||||
|
if: needs.changes.outputs.changed == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
@ -43,7 +46,8 @@ jobs:
|
||||||
run: cargo +nightly fmt --check
|
run: cargo +nightly fmt --check
|
||||||
|
|
||||||
release-binary:
|
release-binary:
|
||||||
if: jobs.changes.steps.changed-files.outputs.any_changed == 'true'
|
need: changes
|
||||||
|
if: needs.changes.outputs.changed == 'true'
|
||||||
needs: tests
|
needs: tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -101,8 +105,8 @@ jobs:
|
||||||
path: tabby_${{ matrix.target }}
|
path: tabby_${{ matrix.target }}
|
||||||
|
|
||||||
pre-release:
|
pre-release:
|
||||||
if: jobs.changes.steps.changed-files.outputs.any_changed == 'true' && github.event_name != 'pull_request'
|
needs: [changes, release-binary]
|
||||||
needs: release-binary
|
if: needs.changes.outputs.changed == 'true' && github.event_name != 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue