diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba38895..bf2dc65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,11 +16,15 @@ jobs: - run: pnpm run check action: name: 'Action' - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + fail-fast: false steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 - run: npm install -g pnpm - run: pnpm install - run: pnpm run build - - run: node dist/index.js + - uses: ./ # self diff --git a/index.ts b/index.ts index 2cc34b8..61f52ce 100644 --- a/index.ts +++ b/index.ts @@ -18,10 +18,9 @@ export async function installRustup() { core.info('rustup does not exist, attempting to install'); - const scriptPath = path.join(os.tmpdir(), 'rustup-init'); const script = await tc.downloadTool( process.platform === 'win32' ? 'https://win.rustup.rs' : 'https://sh.rustup.rs', - scriptPath, + path.join(os.tmpdir(), 'rustup-init'), ); core.info(`Downloaded installation script to ${script}`);