Skip to content

Commit

Permalink
Separated dry run to different workflow that must be run manually
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrea-c committed Feb 14, 2024
1 parent ea773d6 commit 79b568c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,33 +62,6 @@ jobs:
- name: Run clippy
run: cargo clippy -- -D warnings

# Run cargo publish pipeline as a dry run
dry_run:
name: Dry Run Publish
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- name: Run cargo publish dry run for library
run: cargo publish --dry-run -p bevy_animation_graph
- name: Run cargo publish dry run for editor
run: cargo publish --dry-run -p bevy_animation_graph_editor

# Run cargo fmt --all -- --check
format:
name: Format
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/dry_run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: DryRun

on: {}

env:
CARGO_TERM_COLOR: always

jobs:
# Run cargo publish pipeline as a dry run
dry_run:
name: Dry Run Publish
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- name: Run cargo publish dry run for library
run: cargo publish --dry-run -p bevy_animation_graph
- name: Run cargo publish dry run for editor
run: cargo publish --dry-run -p bevy_animation_graph_editor

0 comments on commit 79b568c

Please sign in to comment.