Giter Club home page Giter Club logo

Comments (3)

seanmiddleditch avatar seanmiddleditch commented on July 22, 2024

This action downloads the ninja binaries from https://github.com/ninja-build/ninja/releases, and the binary download links apparently redirect to an AWS S3 bucket (the IP that failed for you is S3). I just double checked and even in a local browser I see the links redirect to an S3 URL, so that appears to be normal/expected behavior for github.

Can you confirm whether you have access to S3 behind your proxy? I'm quite ignorant of the specifics of proxies or whether any particular configuration would need to be done on gha-setup-ninja's end to handle the proxy properly, so if you do have access and something else needs to be done, I'll probably need a PR contributed to fix it.

from gha-setup-ninja.

mikeshuangyan avatar mikeshuangyan commented on July 22, 2024

Thanks for your reply.

I tried with this command but not working.
Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/latest/download/ninja-win.zip" -o "ninja-win.zip"

After set the proxy with this command, it works.
$Wcl = new-object System.Net.WebClient
$Wcl.Headers.Add("user-agent", "PowerShell Script")
$Wcl.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/latest/download/ninja-win.zip" -o "ninja-win.zip"

from gha-setup-ninja.

seanmiddleditch avatar seanmiddleditch commented on July 22, 2024

Hi @mikeshuangyan - I pushed up a branch https://github.com/seanmiddleditch/gha-setup-ninja/tree/proxy that (hypothetically) adds proxy support via an http_proxy input variable.

I don't have a setup right now to actually test this branch... I think I should figure out how to build a simple Docker container that requires a proxy so I can add a test to CI, but that's not something I'm likely to get to soon.

Would you be willing to check out if that branch lets you solve this problem? Further, let me know if the interface (a single http_proxy input variable) is ideal for you?

from gha-setup-ninja.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.