Comments (5)
@gottagofaster236 thank you for reporting this issue! The run-vcpkg
action makes the assumption that the GitHub workspace directory contains a Git repository whose vcpkg is a submodule of. You should be able to set the process.env.GITHUB_WORKSPACE to any value you want to get the behaviour you want. For example:
uses: lukka/run-vcpkg@v11
[...]
env:
GITHUB_WORKSPACE: ${{ github.workspace }}/plugins
I hope that above suggestion works good, if it does not, I look forward to a community provided PR to find a solution for this.
from run-vcpkg.
@gottagofaster236 thank you for providing the verbose log, though I can't see why the suggested workaround does not work.
Probably you may workaround it by putting the vcpkg commit id in the vcpkg.json file, although not ideal.
Regarding fixing run-vcpkg
to support such scenario, I think it would suffice to change the isVcpkgSubmodule function to use as cwd the fullVcpkgPath
parent directory (i.e. one level up only), add a test to cover this scenario and hopefully nothing else gets regressed (which should be spotted by existing tests).
I look forward to see a community provided PR to fix this issue. Of course I'll try this as well but I am not making any promise.
from run-vcpkg.
Adding a "GITHUB_WORKSPACE" environment variable didn't change the current directory unfortunately
from run-vcpkg.
@gottagofaster236 could you enable debugging log for GH action? I wonder if the verbose log could shed some light in why the code here does not pick the environment variable set.
Another workaround would be to try setting the GITHUB_WORKSPACE at job level, that is:
[...]
env:
GITHUB_WORKSPACE: ${{ github.workspace }}/plugins
jobs:
[...]
or probably my suggestion is totally off because the runner is always going to setup and force the GITHUB_WORKSPACE env var hence defeating this suggestion :/
from run-vcpkg.
Here's the run with debugging log enabled
Another workaround would be to try setting the GITHUB_WORKSPACE at job level
I think it can break other unrelated jobs so I would rather not do that
from run-vcpkg.
Related Issues (20)
- v11 has been published onto the v10 branch HOT 2
- run-vcpkg@v11 requires manually setting environment variables for caching to work HOT 6
- run-vcpkg@v11 does not support prepended/appendedCacheKey HOT 2
- run-vcpkg failing with "dyld: Symbol not found: __ZNKSt3_V214error_category10_M_messageB5cxx11Ei" HOT 4
- One package not cached HOT 6
- About Static Linking HOT 4
- some errors when install package HOT 1
- Running the action in a container fails. HOT 3
- Use same cache for all builds? HOT 2
- default vcpkg install directory HOT 4
- Error: EACCES: permission denied, mkdir when running with act on full HOT 4
- 'Could not find toolchain file' even though path seems OK HOT 5
- respect VCPKG_FORCE_SYSTEM_BINARIES HOT 8
- Unnecessary double compilation when using VCPKG_DEFAULT_TRIPLET HOT 4
- vcpkg.json link dead HOT 1
- Update v7 to Node.js 20 HOT 4
- Error when restoring cache HOT 1
- Meet an error when try to use this action. HOT 2
- [macOS 14] functional tests failing since 25th April 2024
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from run-vcpkg.