Skip to content

Commit

Permalink
Merge pull request #692 from Chia-Network/check-workspace
Browse files Browse the repository at this point in the history
Check the whole workspace in one place
  • Loading branch information
Rigidity authored Aug 29, 2024
2 parents c134fed + cf6c2fc commit 4cdcb4a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 26 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/build-crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,25 @@ jobs:
components: rustfmt, clippy

- name: Fmt
run: cargo fmt -- --files-with-diff --check
run: cargo fmt --all -- --files-with-diff --check

- name: Clippy
run: cargo clippy
run: cargo clippy --workspace --all-features --all-targets

- name: Tests
run: cargo test && cargo test --release
- name: Tests (debug)
run: cargo test --workspace --all-features

- name: Build
run: cargo build --release
- name: Tests (release)
run: cargo test --workspace --all-features --release

- name: Build (release)
run: cargo build --workspace --all-features --release

- name: Install cargo-workspaces
run: cargo install cargo-workspaces --locked

- name: Publish (dry run)
run: cargo ws publish --publish-as-is --dry-run

- name: Upload crate artifacts
uses: actions/upload-artifact@v4
Expand All @@ -44,6 +53,4 @@ jobs:
if: startsWith(github.event.ref, 'refs/tags')
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: |
cargo install cargo-workspaces --locked
cargo ws publish --publish-as-is
run: cargo ws publish --publish-as-is
17 changes: 0 additions & 17 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,23 +216,6 @@ jobs:
python wheel/generate_type_stubs.py
git diff --exit-code
build-tools:
name: build chia-tools
runs-on: ubuntu-latest
steps:
- name: Clean workspace
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: cargo build
run: |
cd crates/chia-tools
cargo build
build-sdist:
name: sdist - ${{ matrix.os.name }} ${{ matrix.python.major-dot-minor }} ${{ matrix.arch.name }}
runs-on: ${{ matrix.os.runs-on[matrix.arch.matrix] }}
Expand Down

0 comments on commit 4cdcb4a

Please sign in to comment.