Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

How to handle multiple crates scattered throughout my repo? #30

Open
2 of 3 tasks
mnp opened this issue Aug 12, 2020 · 1 comment
Open
2 of 3 tasks

How to handle multiple crates scattered throughout my repo? #30

mnp opened this issue Aug 12, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mnp
Copy link

mnp commented Aug 12, 2020

Do the checklist before filing an issue:

Motivation

I have a monorepo with various languages, rust included, at different levels. I don't see how the actions should be used in this case. My brute force approach is to define a Makefile target that recurses my repo like this,

SUBDIRS = $(dir $(shell find . -name Cargo.toml))
test-rust:
        for dir in $(SUBDIRS); do ( cd $$dir && cargo test --verbose); done

... and then call make test-rust from the GH action, after setting up the environment. This seems hacky.

Workflow example

/shrug -- I'm thinking there should be a --recursive-find-crate sort of option.

Additional context

There are existing discussions around pointing to one particular workspace or crate: #27 and #28 which seem germane but don't solve my problem.

Any advise?

@mnp mnp added the enhancement New feature or request label Aug 12, 2020
@lskatz
Copy link

lskatz commented Mar 18, 2022

I checked out my repo to a new path and I cannot figure out how to change the path for cargo build either

      - uses: actions/checkout@v3
        with:
          path: fasten
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
      - uses: actions-rs/cargo@v1
        with:
          command: build
          args: --release --all-features 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants