@rightkit/git 0.2.18 → 0.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/manifest.mjs
CHANGED
|
@@ -486,7 +486,6 @@ ${signingMatrix(manifest, "windows")}
|
|
|
486
486
|
${pm.setup}
|
|
487
487
|
- uses: dtolnay/rust-toolchain@f8be11a05b1d4f3fcebe6410cc16743212b999b0
|
|
488
488
|
with:
|
|
489
|
-
toolchain: 1.98.0
|
|
490
489
|
targets: \${{ matrix.targetTriple }}
|
|
491
490
|
- run: ${pm.installCommand}
|
|
492
491
|
- name: Download exact unsigned Windows candidate
|
|
@@ -575,7 +574,6 @@ ${signingMatrix(manifest, "macos")}
|
|
|
575
574
|
${pm.setup}
|
|
576
575
|
- uses: dtolnay/rust-toolchain@f8be11a05b1d4f3fcebe6410cc16743212b999b0
|
|
577
576
|
with:
|
|
578
|
-
toolchain: 1.98.0
|
|
579
577
|
targets: \${{ matrix.targetTriple }}
|
|
580
578
|
- run: ${pm.installCommand}
|
|
581
579
|
- name: Download exact unsigned macOS candidate
|
package/package.json
CHANGED
package/render.test.mjs
CHANGED
|
@@ -46,9 +46,11 @@ test("rust-hybrid ci renders its pinned package manager and gate", () => {
|
|
|
46
46
|
const manifest = { ...FULL_MANIFEST, lanes: ["ci"], profile: "rust-hybrid", gate: { path: "scripts/gate.sh" }, templateVersion: "1.1.0" };
|
|
47
47
|
const content = renderTemplate(fs.readFileSync(path.join(templatesDir, "profiles/rust-hybrid/ci.yml"), "utf8"), buildRenderContext(manifest, "/repos/widgets"));
|
|
48
48
|
assert.match(content, /uses: pnpm\/action-setup@[a-f0-9]{40}/);
|
|
49
|
+
assert.match(content, /fetch-depth: 0/);
|
|
49
50
|
assert.match(content, /^name: widgets-ci$/m);
|
|
50
51
|
assert.match(content, /version: 11\.24\.0/);
|
|
51
|
-
assert.match(content, /
|
|
52
|
+
assert.match(content, /components: rustfmt, clippy/);
|
|
53
|
+
assert.doesNotMatch(content, /toolchain:/);
|
|
52
54
|
assert.match(content, /bash \.\/scripts\/gate\.sh/);
|
|
53
55
|
assert.match(content, /os: \["windows-latest"\]/);
|
|
54
56
|
assert.doesNotMatch(content, /ubuntu-latest|macos-latest/);
|
|
@@ -112,6 +114,7 @@ test("rust-hybrid cache contract renders every declared Cargo workspace", () =>
|
|
|
112
114
|
assert.match(content, /workspaces: \|\n \. -> target\n apps\/studio\/src-tauri -> target/);
|
|
113
115
|
assert.match(content, /add-job-id-key: false/);
|
|
114
116
|
assert.match(content, /cache-workspace-crates: false/);
|
|
117
|
+
assert.match(content, /cache-on-failure: true/);
|
|
115
118
|
assert.match(content, /RUSTC_WRAPPER: "sccache"/);
|
|
116
119
|
});
|
|
117
120
|
|
|
@@ -29,6 +29,8 @@ jobs:
|
|
|
29
29
|
runs-on: ${{ matrix.os }}
|
|
30
30
|
steps:
|
|
31
31
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
32
|
+
with:
|
|
33
|
+
fetch-depth: 0
|
|
32
34
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
33
35
|
with:
|
|
34
36
|
node-version: ${{ matrix.node }}
|
|
@@ -36,7 +38,6 @@ jobs:
|
|
|
36
38
|
${PACKAGE_MANAGER_SETUP}
|
|
37
39
|
- uses: dtolnay/rust-toolchain@f8be11a05b1d4f3fcebe6410cc16743212b999b0
|
|
38
40
|
with:
|
|
39
|
-
toolchain: 1.98.0
|
|
40
41
|
components: rustfmt, clippy
|
|
41
42
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
42
43
|
with:
|
|
@@ -45,6 +46,7 @@ ${RUST_CACHE_WORKSPACES}
|
|
|
45
46
|
shared-key: ${ARTIFACT_PREFIX}-rust
|
|
46
47
|
add-job-id-key: false
|
|
47
48
|
cache-workspace-crates: false
|
|
49
|
+
cache-on-failure: true
|
|
48
50
|
save-if: ${{ github.event_name != 'pull_request' }}
|
|
49
51
|
- uses: Mozilla-Actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
|
|
50
52
|
with:
|
|
@@ -34,6 +34,8 @@ ${CANDIDATE_MATRIX}
|
|
|
34
34
|
runs-on: ${{ matrix.os }}
|
|
35
35
|
steps:
|
|
36
36
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
37
|
+
with:
|
|
38
|
+
fetch-depth: 0
|
|
37
39
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
38
40
|
with:
|
|
39
41
|
node-version: ${{ matrix.node }}
|
|
@@ -41,7 +43,6 @@ ${CANDIDATE_MATRIX}
|
|
|
41
43
|
${PACKAGE_MANAGER_SETUP}
|
|
42
44
|
- uses: dtolnay/rust-toolchain@f8be11a05b1d4f3fcebe6410cc16743212b999b0
|
|
43
45
|
with:
|
|
44
|
-
toolchain: 1.98.0
|
|
45
46
|
components: rustfmt, clippy
|
|
46
47
|
targets: ${{ matrix.targetTriple }}
|
|
47
48
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
|
@@ -51,6 +52,7 @@ ${RUST_CACHE_WORKSPACES}
|
|
|
51
52
|
shared-key: ${ARTIFACT_PREFIX}-rust
|
|
52
53
|
add-job-id-key: false
|
|
53
54
|
cache-workspace-crates: false
|
|
55
|
+
cache-on-failure: true
|
|
54
56
|
save-if: true
|
|
55
57
|
- uses: Mozilla-Actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
|
|
56
58
|
with:
|