The addition of caching is a significant behavior change for this action, so the version has been
bumped to v1.0.0 because of this change.
This action will now configure and use Swatinem/rust-cache by default for you. It will include the target parameter as part of the cache key automatically. Suggested by @jennydaman (Jennings Zhang). GH #23.
This action now validates its input and will exit early if they are not valid. GH #35.
v0.0.17 - bench command
Added support for running cargo bench or cross bench. Implemented by @RaulTrombin (Raul Victor Trombin). GH #32.
v0.0.16
Arguments passed in the args parameter are now always last when executing cargo. This lets you pass arguments to test binaries like -- --something. First reported by @mateocabanal (Mateo Cabanal) as GH #12 and fully fixed by @donatello (Aditya Manthramurthy) in GH #30.
v0.0.15 - Only install musl packages when needed
The musl packages are only installed when not cross-compiling.
v0.0.14 - Install musl-tools if needed
When the given target includes the string musl, this action will install the musl-tools package. This allows crates with C or C++ code to compile properly. Fixes #20. Reported by Matteo Pietro Dazzi (@ilteoood).
v0.0.13 - Can install cross from git
It's now possible to set cross-version to a git ref like a commit hash or HEAD. This will install cross from its git repo.
v0.0.12
Bumped the version of actions/cache used in this action to v4. The v3 version uses Node 16, which causes warnings when run. Implemented by @hms5232. GH #13.
v0.0.11
Use cross when compiling for 32-bit Linux targets. While in theory this should work without cross, compiling openssl with the vendored feature fails when we run cargo build --target i686-unknown-linux-musl.
v0.0.10
Fixed handling of crates with multiple binaries. Attempting to strip binaries for such a crate caused the build to fail. Reported by Tomaž Hribernik. GH #8
Added a new cross-version parameter. This can be specified to make this action use a specific version of cross. If this is not specified, the latest version will be used.
v0.0.9
Added a working-directory parameter. By default this is the current directory (.) but you can set it to something else to compile a single crate or workspace in a subdirectory of the repo. This allows you to use this action with monorepos with multiple crates. Based on GH #7 by @aaronvg.
v0.0.8
For builds that need the cross binary, this binary is now cached. A cache hit saves about 20 seconds in my tests. Suggested by @timon-schelling. GH #4.
v0.0.7
The toolchain argument was (probably) not being respected with cross builds, though it's hard to be sure since none of the output from past CI runs I've looked at it includes the toolchain version in the output. But now the toolchain version is explicitly passed to all cargo and cross commands.
v0.0.6
When the strip parameter was true, stripping binaries could fail if there were both target/*/debug and target/*/release directories present and the debug directory didn't have a binary. Now it will strip all binaries it finds under target.
v0.0.5
Fix use of dtolnay/rust-toolchain action to allow passing a toolchain input.
v0.0.4
Added a new toolchain parameter to allow selecting a Rust toolchain other than stable. This supports picking on of "stable", "beta", or "nightly".
Fixed binary stripping to work in more situations. Previously it depended on a very specific setup plus expected to be run in the context of the matrix I use for my own projects.
Added support for running cargo bench or cross bench. Implemented by @RaulTrombin (Raul Victor
Trombin). GH #32.
0.0.16 - 2024-11-17
Arguments passed in the args parameter are now always last when executing cargo. This lets you
pass arguments to test binaries like -- --something. First reported by @mateocabanal (Mateo
Cabanal) as GH #12 and fully fixed by @donatello (Aditya Manthramurthy) in GH #30.
0.0.15 - 2024-09-21
The musl packages are only installed when not cross-compiling.
0.0.14 - 2024-08-25
When the given target includes the string musl, this action will install the musl-tools
package. This allows crates with C or C++ code to compile properly. Fixes #20. Reported by Matteo
Pietro Dazzi (@ilteoood).
0.0.13 - 2024-05-18
It's now possible to set cross-version to a git ref like a commit hash or HEAD. This will
install cross from its git repo.
0.0.12 - 2024-02-25
Bumped the version of actions/cache used in this action to v4. The v3 version uses Node 16,
which causes warnings when run. Implemented by @hms5232. GH #13.
0.0.11 - 2023-12-17
Use cross when compiling for 32-bit Linux targets. While in theory this should work without
cross, compiling openssl with the vendored feature fails when we run
cargo build --target i686-unknown-linux-musl.
0.0.10 - 2023-12-10
Fixed handling of crates with multiple binaries. Attempting to strip binaries for such a crate
caused the build to fail. Reported by Tomaž Hribernik. GH #8
Added a new cross-version parameter. This can be specified to make this action use a specific
version of cross. If this is not specified, the latest version will be used.
0.0.9 - 2023-09-10
Added a working-directory parameter. By default this is the current directory (.) but you can
set it to something else to compile a single crate or workspace in a subdirectory of the repo.
This allows you to use this action with monorepos with multiple crates. Based on GH #7 by
@aaronvg.
... (truncated)
Commits
7180715 Don't try to install musl-tools if it's already installed
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/LGUG2Z/komorebi/pull/1197
**Author:** [@dependabot[bot]](https://github.com/apps/dependabot)
**Created:** 12/23/2024
**Status:** ✅ Merged
**Merged:** 12/24/2024
**Merged by:** [@LGUG2Z](https://github.com/LGUG2Z)
**Base:** `master` ← **Head:** `dependabot/github_actions/houseabsolute/actions-rust-cross-1`
---
### 📝 Commits (1)
- [`a314a18`](https://github.com/LGUG2Z/komorebi/commit/a314a18bcf52a03d0645abff8ff378ef0afeca60) chore(deps): bump houseabsolute/actions-rust-cross from 0 to 1
### 📊 Changes
**1 file changed** (+1 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `.github/workflows/windows.yaml` (+1 -1)
</details>
### 📄 Description
Bumps [houseabsolute/actions-rust-cross](https://github.com/houseabsolute/actions-rust-cross) from 0 to 1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/houseabsolute/actions-rust-cross/releases">houseabsolute/actions-rust-cross's releases</a>.</em></p>
<blockquote>
<h2>v1.0.0 Beta 1 - Now with caching built in</h2>
<p>The addition of caching is a significant behavior change for this action, so the version has been
bumped to v1.0.0 because of this change.</p>
<ul>
<li>This action will now configure and use <code>Swatinem/rust-cache</code> by default for you. It will include the <code>target</code> parameter as part of the cache key automatically. Suggested by <a href="https://github.com/jennydaman"><code>@jennydaman</code></a> (Jennings Zhang). GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/23">#23</a>.</li>
<li>This action now validates its input and will exit early if they are not valid. GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/35">#35</a>.</li>
</ul>
<h2>v0.0.17 - <code>bench</code> command</h2>
<ul>
<li>Added support for running <code>cargo bench</code> or <code>cross bench</code>. Implemented by <a href="https://github.com/RaulTrombin"><code>@RaulTrombin</code></a> (Raul Victor Trombin). GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/32">#32</a>.</li>
</ul>
<h2>v0.0.16</h2>
<ul>
<li>Arguments passed in the <code>args</code> parameter are now always last when executing <code>cargo</code>. This lets you pass arguments to test binaries like <code>-- --something</code>. First reported by <a href="https://github.com/mateocabanal"><code>@mateocabanal</code></a> (Mateo Cabanal) as GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/12">#12</a> and fully fixed by <a href="https://github.com/donatello"><code>@donatello</code></a> (Aditya Manthramurthy) in GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/30">#30</a>.</li>
</ul>
<h2>v0.0.15 - Only install musl packages when needed</h2>
<ul>
<li>The <code>musl</code> packages are only installed when not cross-compiling.</li>
</ul>
<h2>v0.0.14 - Install <code>musl-tools</code> if needed</h2>
<ul>
<li>When the given <code>target</code> includes the string <code>musl</code>, this action will install the <code>musl-tools</code> package. This allows crates with C or C++ code to compile properly. Fixes <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/20">#20</a>. Reported by Matteo Pietro Dazzi (<a href="https://github.com/ilteoood"><code>@ilteoood</code></a>).</li>
</ul>
<h2>v0.0.13 - Can install cross from git</h2>
<ul>
<li>It's now possible to set <code>cross-version</code> to a git ref like a commit hash or <code>HEAD</code>. This will install <code>cross</code> from its git repo.</li>
</ul>
<h2>v0.0.12</h2>
<ul>
<li>Bumped the version of <code>actions/cache</code> used in this action to v4. The v3 version uses Node 16, which causes warnings when run. Implemented by <a href="https://github.com/hms5232"><code>@hms5232</code></a>. GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/13">#13</a>.</li>
</ul>
<h2>v0.0.11</h2>
<ul>
<li>Use <code>cross</code> when compiling for 32-bit Linux targets. While in theory this should work without <code>cross</code>, compiling <code>openssl</code> with the <code>vendored</code> feature fails when we run <code>cargo build --target i686-unknown-linux-musl</code>.</li>
</ul>
<h2>v0.0.10</h2>
<ul>
<li>Fixed handling of crates with multiple binaries. Attempting to strip binaries for such a crate caused the build to fail. Reported by Tomaž Hribernik. GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/8">#8</a></li>
<li>Added a new <code>cross-version</code> parameter. This can be specified to make this action use a specific version of <code>cross</code>. If this is not specified, the latest version will be used.</li>
</ul>
<h2>v0.0.9</h2>
<ul>
<li>Added a <code>working-directory</code> parameter. By default this is the current directory (<code>.</code>) but you can set it to something else to compile a single crate or workspace in a subdirectory of the repo. This allows you to use this action with monorepos with multiple crates. Based on GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/7">#7</a> by <a href="https://github.com/aaronvg"><code>@aaronvg</code></a>.</li>
</ul>
<h2>v0.0.8</h2>
<ul>
<li>For builds that need the <code>cross</code> binary, this binary is now cached. A cache hit saves about 20 seconds in my tests. Suggested by <a href="https://github.com/timon-schelling"><code>@timon-schelling</code></a>. GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/4">#4</a>.</li>
</ul>
<h2>v0.0.7</h2>
<ul>
<li>The toolchain argument was (probably) not being respected with cross builds, though it's hard to be sure since none of the output from past CI runs I've looked at it includes the toolchain version in the output. But now the toolchain version is explicitly passed to all <code>cargo</code> and <code>cross</code> commands.</li>
</ul>
<h2>v0.0.6</h2>
<ul>
<li>When the <code>strip</code> parameter was true, stripping binaries could fail if there were both <code>target/*/debug</code> and <code>target/*/release</code> directories present and the <code>debug</code> directory didn't have a binary. Now it will strip all binaries it finds under <code>target</code>.</li>
</ul>
<h2>v0.0.5</h2>
<ul>
<li>Fix use of <code>dtolnay/rust-toolchain</code> action to allow passing a <code>toolchain</code> input.</li>
</ul>
<h2>v0.0.4</h2>
<ul>
<li>Added a new <code>toolchain</code> parameter to allow selecting a Rust toolchain other than stable. This supports picking on of "stable", "beta", or "nightly".</li>
<li>Fixed binary stripping to work in more situations. Previously it depended on a very specific setup plus expected to be run in the context of the matrix I use for my own projects.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/houseabsolute/actions-rust-cross/blob/v0/Changes.md">houseabsolute/actions-rust-cross's changelog</a>.</em></p>
<blockquote>
<h2>0.0.17 - 2024-11-23</h2>
<ul>
<li>Added support for running <code>cargo bench</code> or <code>cross bench</code>. Implemented by <a href="https://github.com/RaulTrombin"><code>@RaulTrombin</code></a> (Raul Victor
Trombin). GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/32">#32</a>.</li>
</ul>
<h2>0.0.16 - 2024-11-17</h2>
<ul>
<li>Arguments passed in the <code>args</code> parameter are now always last when executing <code>cargo</code>. This lets you
pass arguments to test binaries like <code>-- --something</code>. First reported by <a href="https://github.com/mateocabanal"><code>@mateocabanal</code></a> (Mateo
Cabanal) as GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/12">#12</a> and fully fixed by <a href="https://github.com/donatello"><code>@donatello</code></a> (Aditya Manthramurthy) in GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/30">#30</a>.</li>
</ul>
<h2>0.0.15 - 2024-09-21</h2>
<ul>
<li>The <code>musl</code> packages are only installed when not cross-compiling.</li>
</ul>
<h2>0.0.14 - 2024-08-25</h2>
<ul>
<li>When the given <code>target</code> includes the string <code>musl</code>, this action will install the <code>musl-tools</code>
package. This allows crates with C or C++ code to compile properly. Fixes <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/20">#20</a>. Reported by Matteo
Pietro Dazzi (<a href="https://github.com/ilteoood"><code>@ilteoood</code></a>).</li>
</ul>
<h2>0.0.13 - 2024-05-18</h2>
<ul>
<li>It's now possible to set <code>cross-version</code> to a git ref like a commit hash or <code>HEAD</code>. This will
install <code>cross</code> from its git repo.</li>
</ul>
<h2>0.0.12 - 2024-02-25</h2>
<ul>
<li>Bumped the version of <code>actions/cache</code> used in this action to v4. The v3 version uses Node 16,
which causes warnings when run. Implemented by <a href="https://github.com/hms5232"><code>@hms5232</code></a>. GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/13">#13</a>.</li>
</ul>
<h2>0.0.11 - 2023-12-17</h2>
<ul>
<li>Use <code>cross</code> when compiling for 32-bit Linux targets. While in theory this should work without
<code>cross</code>, compiling <code>openssl</code> with the <code>vendored</code> feature fails when we run
<code>cargo build --target i686-unknown-linux-musl</code>.</li>
</ul>
<h2>0.0.10 - 2023-12-10</h2>
<ul>
<li>Fixed handling of crates with multiple binaries. Attempting to strip binaries for such a crate
caused the build to fail. Reported by Tomaž Hribernik. GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/8">#8</a></li>
<li>Added a new <code>cross-version</code> parameter. This can be specified to make this action use a specific
version of <code>cross</code>. If this is not specified, the latest version will be used.</li>
</ul>
<h2>0.0.9 - 2023-09-10</h2>
<ul>
<li>Added a <code>working-directory</code> parameter. By default this is the current directory (<code>.</code>) but you can
set it to something else to compile a single crate or workspace in a subdirectory of the repo.
This allows you to use this action with monorepos with multiple crates. Based on GH <a href="https://redirect.github.com/houseabsolute/actions-rust-cross/issues/7">#7</a> by
<a href="https://github.com/aaronvg"><code>@aaronvg</code></a>.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/718071590ba2d46a4df886796c3a82fa4dd43a23"><code>7180715</code></a> Don't try to install <code>musl-tools</code> if it's already installed</li>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/a1777f583844dbb2764204c10920cccfd539ed04"><code>a1777f5</code></a> Add first step to print all inputs</li>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/b1824d4802fcb56b203051c73c1f34ee2b9f7126"><code>b1824d4</code></a> Update README.md for version 1 bump</li>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/3d79b2453182031909f83d044c6ab4a33d5ffaf9"><code>3d79b24</code></a> Rename <code>os</code> to <code>runs-on</code> in test matrix workflow</li>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/9ec7e60cb6db04c6a47975d16f05c2b9a3c19852"><code>9ec7e60</code></a> Clarify use cases in <code>README.md</code></li>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/fd3526da5f00f92c47ab5d589a9cff4e3c4641ff"><code>fd3526d</code></a> Fix example in <code>README.md</code> to use <code>checkout@v4</code></li>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/12331c384e1bc6f272013bf73a6cc33acd1f1118"><code>12331c3</code></a> Tweak wording in <code>README.md</code></li>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/dbeb1eb6a2fee7508b1bfdc34371d3532005a01e"><code>dbeb1eb</code></a> Replace all Perl scripts with Rust</li>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/dad7ec15deb1512b7d112f81834b17006ff42b7b"><code>dad7ec1</code></a> Validate inputs to this action</li>
<li><a href="https://github.com/houseabsolute/actions-rust-cross/commit/02640563b400b2c6b7371402572151a0f069d8b1"><code>0264056</code></a> Add <code>bench</code> to <code>command</code> docs</li>
<li>Additional commits viewable in <a href="https://github.com/houseabsolute/actions-rust-cross/compare/v0...v1">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1197
Author: @dependabot[bot]
Created: 12/23/2024
Status: ✅ Merged
Merged: 12/24/2024
Merged by: @LGUG2Z
Base:
master← Head:dependabot/github_actions/houseabsolute/actions-rust-cross-1📝 Commits (1)
a314a18chore(deps): bump houseabsolute/actions-rust-cross from 0 to 1📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
.github/workflows/windows.yaml(+1 -1)📄 Description
Bumps houseabsolute/actions-rust-cross from 0 to 1.
Release notes
Sourced from houseabsolute/actions-rust-cross's releases.
... (truncated)
Changelog
Sourced from houseabsolute/actions-rust-cross's changelog.
... (truncated)
Commits
7180715Don't try to installmusl-toolsif it's already installeda1777f5Add first step to print all inputsb1824d4Update README.md for version 1 bump3d79b24Renameostoruns-onin test matrix workflow9ec7e60Clarify use cases inREADME.mdfd3526dFix example inREADME.mdto usecheckout@v412331c3Tweak wording inREADME.mddbeb1ebReplace all Perl scripts with Rustdad7ec1Validate inputs to this action0264056AddbenchtocommanddocsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.