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 · 3 comments
Open

No such file or directory in windows2019 #3

minwoo-payhere opened this issue Aug 8, 2023 · 3 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'

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

4 participants