This commit is contained in:
Miles Johnson 2023-08-01 15:21:21 -07:00
parent 2b56f5e1e8
commit 36ecdbe15a
2 changed files with 7 additions and 4 deletions

View file

@ -16,11 +16,15 @@ jobs:
- run: pnpm run check - run: pnpm run check
action: action:
name: 'Action' name: 'Action'
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
- run: npm install -g pnpm - run: npm install -g pnpm
- run: pnpm install - run: pnpm install
- run: pnpm run build - run: pnpm run build
- run: node dist/index.js - uses: ./ # self

View file

@ -18,10 +18,9 @@ export async function installRustup() {
core.info('rustup does not exist, attempting to install'); core.info('rustup does not exist, attempting to install');
const scriptPath = path.join(os.tmpdir(), 'rustup-init');
const script = await tc.downloadTool( const script = await tc.downloadTool(
process.platform === 'win32' ? 'https://win.rustup.rs' : 'https://sh.rustup.rs', 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}`); core.info(`Downloaded installation script to ${script}`);