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

No such file or directory in windows2019 #3

Open
minwoo-payhere opened this issue Aug 8, 2023 · 4 comments
Open

No such file or directory in windows2019 #3

minwoo-payhere opened this issue Aug 8, 2023 · 4 comments

Comments

@minwoo-payhere
Copy link

I run jobs on window-2019
I think install-cli.sh path is not valid in windows
can you check this?

jobs:
  build:
    runs-on: windows-2019

image

@edif2008
Copy link
Member

edif2008 commented Oct 3, 2023

Hey @minwoo-payhere! 👋🏻
Currently this action is only available for Linux and macOS runners.
Windows is not supported yet and is not currently on our roadmap. Therefore, we can not confirm if or when this will be added.
If you have the time and know how feel free to make a PR with the additional functionality to make the action compatible with Windows runners. 😄

@szzsolt
Copy link

szzsolt commented Oct 26, 2023

Hey @minwoo-payhere! 👋🏻 Currently this action is only available for Linux and macOS runners. Windows is not supported yet and is not currently on our roadmap. Therefore, we can not confirm if or when this will be added. If you have the time and know how feel free to make a PR with the additional functionality to make the action compatible with Windows runners. 😄

Hello, I had the same issue and submitted a PR.

@quanglam2807
Copy link

We're currently using this for Windows. Hope it helps!

      - name: Install 1Password CLI (Windows)
        shell: powershell
        # Install 1Password CLI > Windows > Manual: https://developer.1password.com/docs/cli/get-started/
        # Adding a system path: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
        run: |
          Invoke-WebRequest "https://app-updates.agilebits.com/check/1/0/CLI2/en/2.0.0/N" -OutFile op.json
          $opVersion = Get-Content -Raw -Path op.json | ConvertFrom-Json | select -ExpandProperty version
          $installDir = Join-Path -Path $pwd -ChildPath 'op'
          Invoke-WebRequest -Uri "https://cache.agilebits.com/dist/1P/op2/pkg/v$($opVersion)/op_windows_amd64_v$($opVersion).zip" -OutFile op.zip
          Expand-Archive -Path op.zip -DestinationPath $installDir -Force
          "$installDir" | Out-File -FilePath $env:GITHUB_PATH -Append
        if: matrix.os == 'windows-latest'

@VSDrugs
Copy link

VSDrugs commented Jul 24, 2024

Hi, I'm getting the same issue with my self-hosted Linux runner. The job is running inside the Ubuntu container. But workflow stops with an error coder 127. Error -
/__w/_temp/e6d45f6e-9a69-4c8a-a5f7-2db46370aad3.sh: line 1: /home/runner/actions-runner/_work/_actions/1password/install-cli-action/v1/install-cli.sh: No such file or directory

Path was mounted inside the container as volume -
-v "/home/runner/actions-runner/_work/_actions":"/__w/_actions"

Can you please let me know if this is the problem with my setup or I'm hitting a bug?
Thx heaps!

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

5 participants