mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 13:30:03 +00:00
Fix CI.
This commit is contained in:
parent
2b56f5e1e8
commit
36ecdbe15a
2 changed files with 7 additions and 4 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
3
index.ts
3
index.ts
|
@ -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}`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue