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

Suggested bash default option changes working directory to $HOME #8

Open
kmilos opened this issue Dec 17, 2021 · 2 comments
Open

Suggested bash default option changes working directory to $HOME #8

kmilos opened this issue Dec 17, 2021 · 2 comments

Comments

@kmilos
Copy link

kmilos commented Dec 17, 2021

Had to remove the --login option, otherwise the working directory is changed, even w/ --norc specified:

Run cmake -GNinja \
  cmake -GNinja \
    -S . -B build
  cmake --build build
  shell: C:\tools\cygwin\bin\bash.exe --login --norc -o igncr '{0}'
  env:
    CYGWIN: 
Copying skeleton files.
These files are for the users to personalise their cygwin experience.

They will never be overwritten nor automatically updated.

'./.bashrc' -> '/home/runneradmin//.bashrc'
'./.bash_profile' -> '/home/runneradmin//.bash_profile'
'./.inputrc' -> '/home/runneradmin//.inputrc'
'./.profile' -> '/home/runneradmin//.profile'
CMake Error: The source directory "/home/runneradmin" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Error: /home/runneradmin/build is not a directory
Error: Process completed with exit code 1.
@coffeebe4code
Copy link

Github actions themselves seem like a blackbox, what directory is the repository even put into so we can change to it?

dargueta added a commit to dargueta/libmetaldata that referenced this issue Sep 25, 2023
@dargueta
Copy link

On Windows, actions/checkout downloads your repo into a temporary directory, so there's no hard-coded path we can get back to.

dargueta added a commit to dargueta/libmetaldata that referenced this issue Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants