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

Ability to run grcov action for a sub-folder containing Rust sources. #50

Open
wdanilo opened this issue Mar 16, 2020 · 2 comments
Open

Comments

@wdanilo
Copy link

wdanilo commented Mar 16, 2020

Hi! We've been succesfully using grcov for some time now and we have recently refactored our codebase. Our Cargo.toml is no longer located at the top-level. Instead it is inside src/rust folder. When running the CI we got error now: no such file or directory, open '/home/runner/work/ide/ide/Cargo.lock', which is true, as it should point to no such file or directory, open '/home/runner/work/ide/ide/src/rust/Cargo.lock' instead. The problem is that GitHub Actions do not provide a way to set up CWD for third party actions and I haven't found any configuration here how to point grcov to some specific root folder. I'd be very thankful for any help! In case this would be important, this is our repo: https://github.com/luna/ide (branch wip/wd/dev, soon the changes will be on master)

@vcfxb
Copy link

vcfxb commented Apr 3, 2020

I am also wondering about this.

@vcfxb
Copy link

vcfxb commented Apr 4, 2020

Current fix is putting another Cargo.toml in the root directory of the crate, listing it as a workspace and naming the crates within the directory.
ex:

[workspace]
members = ["my-crate"]

Stranger6667 added a commit to Stranger6667/jsonschema that referenced this issue Jan 29, 2021
It doesn't support such project structure
Ref: actions-rs/grcov#50
Stranger6667 added a commit to Stranger6667/jsonschema that referenced this issue Jan 29, 2021
* chore: Move Python bindings to `bindings`

* chore: Move `jsonschema` into a separate directory

* chore: Move submodule

* ci: Fix the `coverage` job

* chore: Move submodule

* test: Disable some failing optional tests

* ci: Add tests for installing Python sdist

* fix: Sdist Python packaging

* chore: Remove coverage job

It doesn't support such project structure
Ref: actions-rs/grcov#50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants