From 36ecdbe15a4fad6ec6936ad713988d84235ede20 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Tue, 1 Aug 2023 15:21:21 -0700 Subject: [PATCH] Fix CI. --- .github/workflows/ci.yml | 8 ++++++-- index.ts | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) 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}`);