diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 49a79e2..e952493 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: test: strategy: matrix: - runner: [ubuntu-slim, ubuntu-latest] + runner: [ubuntu-slim, ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest] runs-on: ${{ matrix.runner }} steps: - uses: actions/checkout@v5 @@ -37,5 +37,5 @@ jobs: - uses: ./ with: ssh-private-key: ${{ secrets.CI_DEPLOY_KEY_PRIVATE_KEY }} - fetch-github-host-keys: ${{ matrix.runner == 'ubuntu-slim' }} - - run: git clone git@github.com:tadodotcom/ssh-agent.git /tmp/ssh-agent-clone \ No newline at end of file + fetch-github-host-keys: ${{ matrix.runner == 'ubuntu-slim' || matrix.runner == 'windows-latest' }} + - run: git clone git@github.com:tadodotcom/ssh-agent.git ssh-agent-clone diff --git a/dist/index.js b/dist/index.js index 5f871f9..e569738 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3697,10 +3697,13 @@ try { if (fetchGithubHostKeys) { console.log("Fetching GitHub host keys"); try { - const metaJson = child_process.execSync( - "curl --silent https://api.github.com/meta", - { encoding: "utf8" }, - ); + // Use curl which is available on all GitHub Actions runners (Linux, macOS, Windows) + const curlCmd = + process.platform === "win32" + ? "curl.exe --silent https://api.github.com/meta" + : "curl --silent https://api.github.com/meta"; + + const metaJson = child_process.execSync(curlCmd, { encoding: "utf8" }); const meta = JSON.parse(metaJson); const knownHostsFile = `${homeSsh}/known_hosts`; diff --git a/index.js b/index.js index e754a3f..9d421ed 100644 --- a/index.js +++ b/index.js @@ -29,10 +29,13 @@ try { if (fetchGithubHostKeys) { console.log("Fetching GitHub host keys"); try { - const metaJson = child_process.execSync( - "curl --silent https://api.github.com/meta", - { encoding: "utf8" }, - ); + // Use curl which is available on all GitHub Actions runners (Linux, macOS, Windows) + const curlCmd = + process.platform === "win32" + ? "curl.exe --silent https://api.github.com/meta" + : "curl --silent https://api.github.com/meta"; + + const metaJson = child_process.execSync(curlCmd, { encoding: "utf8" }); const meta = JSON.parse(metaJson); const knownHostsFile = `${homeSsh}/known_hosts`;