Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check the whole workspace in one place #692

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
arvidn marked this conversation as resolved.
Show resolved Hide resolved

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
Loading