mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-05-02 06:40:03 +00:00
Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
52e0bc3392 | ||
![]() |
2d9112aa0c | ||
![]() |
1670d14080 |
6 changed files with 2142 additions and 1654 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
- run: npm install -g pnpm
|
- run: npm install -g pnpm
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: pnpm run check
|
- run: pnpm run check
|
||||||
|
@ -23,7 +23,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
- run: npm install -g pnpm
|
- run: npm install -g pnpm
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: pnpm run build
|
- run: pnpm run build
|
||||||
|
@ -39,7 +39,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
- run: npm install -g pnpm
|
- run: npm install -g pnpm
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: pnpm run build
|
- run: pnpm run build
|
||||||
|
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
|
@ -9,7 +9,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.release.tag_name }}
|
ref: ${{ github.event.release.tag_name }}
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
- run: npm install -g pnpm
|
- run: npm install -g pnpm
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: pnpm run build
|
- run: pnpm run build
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
# 1.2.2
|
||||||
|
|
||||||
|
- Updated dependencies.
|
||||||
|
|
||||||
|
# 1.2.1
|
||||||
|
|
||||||
|
- Pinned the `cargo-binstall` version to v1.8 to work around the 404 errors in CI.
|
||||||
|
- Added support for the `CARGO_BINSTALL_VERSION` environment variable.
|
||||||
|
|
||||||
# 1.2.0
|
# 1.2.0
|
||||||
|
|
||||||
- Added a `target-dirs` input, allowing the target folders to be specified. Can now cache multiple
|
- Added a `target-dirs` input, allowing the target folders to be specified. Can now cache multiple
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@moonrepo/setup-rust",
|
"name": "@moonrepo/setup-rust",
|
||||||
"version": "1.2.0",
|
"version": "1.2.2",
|
||||||
"description": "A GitHub action for setting up Rust and Cargo.",
|
"description": "A GitHub action for setting up Rust and Cargo.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -16,17 +16,17 @@
|
||||||
"author": "Miles Johnson",
|
"author": "Miles Johnson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/cache": "^3.2.4",
|
"@actions/cache": "^4.0.0",
|
||||||
"@actions/core": "^1.10.1",
|
"@actions/core": "^1.10.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/glob": "^0.4.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.1",
|
"@actions/tool-cache": "^2.0.1",
|
||||||
"@ltd/j-toml": "^1.38.0",
|
"@ltd/j-toml": "^1.38.0",
|
||||||
"detect-libc": "^2.0.3"
|
"detect-libc": "^2.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.12.8",
|
"@types/node": "^20.13.4",
|
||||||
"@vercel/ncc": "^0.38.1",
|
"@vercel/ncc": "^0.38.1",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
"eslint-config-moon": "^2.0.11",
|
"eslint-config-moon": "^2.0.11",
|
||||||
|
|
3682
pnpm-lock.yaml
generated
3682
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
@ -17,6 +17,7 @@ import {
|
||||||
} from './cache';
|
} from './cache';
|
||||||
import { rmrf } from './fs';
|
import { rmrf } from './fs';
|
||||||
|
|
||||||
|
// eslint-disable-next-line complexity
|
||||||
export async function downloadAndInstallBinstall(binDir: string) {
|
export async function downloadAndInstallBinstall(binDir: string) {
|
||||||
core.info('cargo-binstall does not exist, attempting to install');
|
core.info('cargo-binstall does not exist, attempting to install');
|
||||||
|
|
||||||
|
@ -62,7 +63,11 @@ export async function downloadAndInstallBinstall(binDir: string) {
|
||||||
throw new Error(`Unsupported platform: ${process.platform}`);
|
throw new Error(`Unsupported platform: ${process.platform}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const url = `https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-${file}`;
|
// https://github.com/cargo-bins/cargo-binstall/issues/1864
|
||||||
|
const version = process.env.CARGO_BINSTALL_VERSION ?? 'v1.8.0';
|
||||||
|
const url = version === 'latest'
|
||||||
|
? `https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-${file}`
|
||||||
|
: `https://github.com/cargo-bins/cargo-binstall/releases/download/${version}/cargo-binstall-${file}`;
|
||||||
const dlPath = await tc.downloadTool(url);
|
const dlPath = await tc.downloadTool(url);
|
||||||
|
|
||||||
if (url.endsWith('.zip')) {
|
if (url.endsWith('.zip')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue