-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move cache save to runs.post and exit early #60
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for working on this! |
RelativeSure
referenced
this pull request
in RelativeSure/personal-site
Mar 7, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [oven-sh/setup-bun](https://togithub.com/oven-sh/setup-bun) | action | minor | `v1.1.1` -> `v1.2.0` | --- ### Release Notes <details> <summary>oven-sh/setup-bun (oven-sh/setup-bun)</summary> ### [`v1.2.0`](https://togithub.com/oven-sh/setup-bun/releases/tag/v1.2.0) [Compare Source](https://togithub.com/oven-sh/setup-bun/compare/v1.1.1...v1.2.0) ### setup-bun `v1.2.0` Download, install, and setup [Bun](https://bun.sh) in GitHub Actions. #### Usage ```yaml - uses: oven-sh/setup-bun@v1 with: bun-version: latest ``` ##### Using a custom NPM registry ```yaml - uses: oven-sh/setup-bun@v1 with: registry-url: "https://npm.pkg.github.com/" scope: "@​foo" ``` If you need to authenticate with a private registry, you can set the `BUN_AUTH_TOKEN` environment variable. ```yaml - name: Install Dependencies env: BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: bun install --frozen-lockfile ``` ##### Node.js not needed In most cases, you shouldn't need to use the [setup-node](https://togithub.com/actions/setup-node) GitHub Action. #### Inputs | Name | Description | Default | Examples | | -------------- | -------------------------------------------------- | ----------- | ------------------------------- | | `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `1.0.x` | | `registry-url` | Registry URL where some private package is stored. | `undefined` | `"https://npm.pkg.github.com/"` | | `scope` | Scope for private packages. | `undefined` | `"@​foo"`, `"@​orgname"` | | `no-cache` | Disable caching of the downloaded executable. | `false` | `true`, `false` | #### Outputs | Name | Description | Example | | -------------- | ------------------------------------------ | ---------------- | | `cache-hit` | If the Bun executable was read from cache. | `true` | | `bun-version` | The output from `bun --version`. | `1.0.0` | | `bun-revision` | The output from `bun --revision`. | `1.0.0+822a00c4` | #### What's Changed - docs: add explanatory note about setup-node by [@​PaulRBerg](https://togithub.com/PaulRBerg) in [https://github.com/oven-sh/setup-bun/pull/47](https://togithub.com/oven-sh/setup-bun/pull/47) - Add GitHub action to auto-update the v1 tag by [@​jcbhmr](https://togithub.com/jcbhmr) in [https://github.com/oven-sh/setup-bun/pull/53](https://togithub.com/oven-sh/setup-bun/pull/53) - docs: add --frozen-lockfile to README by [@​blimmer](https://togithub.com/blimmer) in [https://github.com/oven-sh/setup-bun/pull/52](https://togithub.com/oven-sh/setup-bun/pull/52) - Fix typo in README.md by [@​starsep](https://togithub.com/starsep) in [https://github.com/oven-sh/setup-bun/pull/57](https://togithub.com/oven-sh/setup-bun/pull/57) - Move cache save to runs.post and exit early by [@​andyexeter](https://togithub.com/andyexeter) in [https://github.com/oven-sh/setup-bun/pull/60](https://togithub.com/oven-sh/setup-bun/pull/60) - Add no-cache option by [@​maschwenk](https://togithub.com/maschwenk) in [https://github.com/oven-sh/setup-bun/pull/58](https://togithub.com/oven-sh/setup-bun/pull/58) #### New Contributors - [@​PaulRBerg](https://togithub.com/PaulRBerg) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/47](https://togithub.com/oven-sh/setup-bun/pull/47) - [@​jcbhmr](https://togithub.com/jcbhmr) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/53](https://togithub.com/oven-sh/setup-bun/pull/53) - [@​blimmer](https://togithub.com/blimmer) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/52](https://togithub.com/oven-sh/setup-bun/pull/52) - [@​starsep](https://togithub.com/starsep) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/57](https://togithub.com/oven-sh/setup-bun/pull/57) - [@​andyexeter](https://togithub.com/andyexeter) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/60](https://togithub.com/oven-sh/setup-bun/pull/60) - [@​maschwenk](https://togithub.com/maschwenk) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/58](https://togithub.com/oven-sh/setup-bun/pull/58) **Full Changelog**: oven-sh/setup-bun@v1...v1.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
renovate bot
referenced
this pull request
in simonknittel/simonknittel.de
Mar 7, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [oven-sh/setup-bun](https://togithub.com/oven-sh/setup-bun) | action | minor | `v1.1.1` -> `v1.2.0` | --- ### Release Notes <details> <summary>oven-sh/setup-bun (oven-sh/setup-bun)</summary> ### [`v1.2.0`](https://togithub.com/oven-sh/setup-bun/releases/tag/v1.2.0) [Compare Source](https://togithub.com/oven-sh/setup-bun/compare/v1.1.1...v1.2.0) ##### setup-bun `v1.2.0` Download, install, and setup [Bun](https://bun.sh) in GitHub Actions. ##### Usage ```yaml - uses: oven-sh/setup-bun@v1 with: bun-version: latest ``` ##### Using a custom NPM registry ```yaml - uses: oven-sh/setup-bun@v1 with: registry-url: "https://npm.pkg.github.com/" scope: "@​foo" ``` If you need to authenticate with a private registry, you can set the `BUN_AUTH_TOKEN` environment variable. ```yaml - name: Install Dependencies env: BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: bun install --frozen-lockfile ``` ##### Node.js not needed In most cases, you shouldn't need to use the [setup-node](https://togithub.com/actions/setup-node) GitHub Action. ##### Inputs | Name | Description | Default | Examples | | -------------- | -------------------------------------------------- | ----------- | ------------------------------- | | `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `1.0.x` | | `registry-url` | Registry URL where some private package is stored. | `undefined` | `"https://npm.pkg.github.com/"` | | `scope` | Scope for private packages. | `undefined` | `"@​foo"`, `"@​orgname"` | | `no-cache` | Disable caching of the downloaded executable. | `false` | `true`, `false` | ##### Outputs | Name | Description | Example | | -------------- | ------------------------------------------ | ---------------- | | `cache-hit` | If the Bun executable was read from cache. | `true` | | `bun-version` | The output from `bun --version`. | `1.0.0` | | `bun-revision` | The output from `bun --revision`. | `1.0.0+822a00c4` | ##### What's Changed - docs: add explanatory note about setup-node by [@​PaulRBerg](https://togithub.com/PaulRBerg) in [https://github.com/oven-sh/setup-bun/pull/47](https://togithub.com/oven-sh/setup-bun/pull/47) - Add GitHub action to auto-update the v1 tag by [@​jcbhmr](https://togithub.com/jcbhmr) in [https://github.com/oven-sh/setup-bun/pull/53](https://togithub.com/oven-sh/setup-bun/pull/53) - docs: add --frozen-lockfile to README by [@​blimmer](https://togithub.com/blimmer) in [https://github.com/oven-sh/setup-bun/pull/52](https://togithub.com/oven-sh/setup-bun/pull/52) - Fix typo in README.md by [@​starsep](https://togithub.com/starsep) in [https://github.com/oven-sh/setup-bun/pull/57](https://togithub.com/oven-sh/setup-bun/pull/57) - Move cache save to runs.post and exit early by [@​andyexeter](https://togithub.com/andyexeter) in [https://github.com/oven-sh/setup-bun/pull/60](https://togithub.com/oven-sh/setup-bun/pull/60) - Add no-cache option by [@​maschwenk](https://togithub.com/maschwenk) in [https://github.com/oven-sh/setup-bun/pull/58](https://togithub.com/oven-sh/setup-bun/pull/58) ##### New Contributors - [@​PaulRBerg](https://togithub.com/PaulRBerg) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/47](https://togithub.com/oven-sh/setup-bun/pull/47) - [@​jcbhmr](https://togithub.com/jcbhmr) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/53](https://togithub.com/oven-sh/setup-bun/pull/53) - [@​blimmer](https://togithub.com/blimmer) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/52](https://togithub.com/oven-sh/setup-bun/pull/52) - [@​starsep](https://togithub.com/starsep) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/57](https://togithub.com/oven-sh/setup-bun/pull/57) - [@​andyexeter](https://togithub.com/andyexeter) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/60](https://togithub.com/oven-sh/setup-bun/pull/60) - [@​maschwenk](https://togithub.com/maschwenk) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/58](https://togithub.com/oven-sh/setup-bun/pull/58) **Full Changelog**: oven-sh/setup-bun@v1...v1.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/simonknittel/simonknittel.de). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzMC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9-->
renovate bot
referenced
this pull request
in simonknittel/sinister-incorporated
Mar 8, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [oven-sh/setup-bun](https://togithub.com/oven-sh/setup-bun) | action | minor | `v1.1.1` -> `v1.2.0` | --- ### Release Notes <details> <summary>oven-sh/setup-bun (oven-sh/setup-bun)</summary> ### [`v1.2.0`](https://togithub.com/oven-sh/setup-bun/releases/tag/v1.2.0) [Compare Source](https://togithub.com/oven-sh/setup-bun/compare/v1.1.1...v1.2.0) ##### setup-bun `v1.2.0` Download, install, and setup [Bun](https://bun.sh) in GitHub Actions. ##### Usage ```yaml - uses: oven-sh/setup-bun@v1 with: bun-version: latest ``` ##### Using a custom NPM registry ```yaml - uses: oven-sh/setup-bun@v1 with: registry-url: "https://npm.pkg.github.com/" scope: "@​foo" ``` If you need to authenticate with a private registry, you can set the `BUN_AUTH_TOKEN` environment variable. ```yaml - name: Install Dependencies env: BUN_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: bun install --frozen-lockfile ``` ##### Node.js not needed In most cases, you shouldn't need to use the [setup-node](https://togithub.com/actions/setup-node) GitHub Action. ##### Inputs | Name | Description | Default | Examples | | -------------- | -------------------------------------------------- | ----------- | ------------------------------- | | `bun-version` | The version of Bun to download and install. | `latest` | `canary`, `1.0.0`, `1.0.x` | | `registry-url` | Registry URL where some private package is stored. | `undefined` | `"https://npm.pkg.github.com/"` | | `scope` | Scope for private packages. | `undefined` | `"@​foo"`, `"@​orgname"` | | `no-cache` | Disable caching of the downloaded executable. | `false` | `true`, `false` | ##### Outputs | Name | Description | Example | | -------------- | ------------------------------------------ | ---------------- | | `cache-hit` | If the Bun executable was read from cache. | `true` | | `bun-version` | The output from `bun --version`. | `1.0.0` | | `bun-revision` | The output from `bun --revision`. | `1.0.0+822a00c4` | ##### What's Changed - docs: add explanatory note about setup-node by [@​PaulRBerg](https://togithub.com/PaulRBerg) in [https://github.com/oven-sh/setup-bun/pull/47](https://togithub.com/oven-sh/setup-bun/pull/47) - Add GitHub action to auto-update the v1 tag by [@​jcbhmr](https://togithub.com/jcbhmr) in [https://github.com/oven-sh/setup-bun/pull/53](https://togithub.com/oven-sh/setup-bun/pull/53) - docs: add --frozen-lockfile to README by [@​blimmer](https://togithub.com/blimmer) in [https://github.com/oven-sh/setup-bun/pull/52](https://togithub.com/oven-sh/setup-bun/pull/52) - Fix typo in README.md by [@​starsep](https://togithub.com/starsep) in [https://github.com/oven-sh/setup-bun/pull/57](https://togithub.com/oven-sh/setup-bun/pull/57) - Move cache save to runs.post and exit early by [@​andyexeter](https://togithub.com/andyexeter) in [https://github.com/oven-sh/setup-bun/pull/60](https://togithub.com/oven-sh/setup-bun/pull/60) - Add no-cache option by [@​maschwenk](https://togithub.com/maschwenk) in [https://github.com/oven-sh/setup-bun/pull/58](https://togithub.com/oven-sh/setup-bun/pull/58) ##### New Contributors - [@​PaulRBerg](https://togithub.com/PaulRBerg) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/47](https://togithub.com/oven-sh/setup-bun/pull/47) - [@​jcbhmr](https://togithub.com/jcbhmr) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/53](https://togithub.com/oven-sh/setup-bun/pull/53) - [@​blimmer](https://togithub.com/blimmer) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/52](https://togithub.com/oven-sh/setup-bun/pull/52) - [@​starsep](https://togithub.com/starsep) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/57](https://togithub.com/oven-sh/setup-bun/pull/57) - [@​andyexeter](https://togithub.com/andyexeter) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/60](https://togithub.com/oven-sh/setup-bun/pull/60) - [@​maschwenk](https://togithub.com/maschwenk) made their first contribution in [https://github.com/oven-sh/setup-bun/pull/58](https://togithub.com/oven-sh/setup-bun/pull/58) **Full Changelog**: oven-sh/setup-bun@v1...v1.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/simonknittel/sinister-incorporated). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzMC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #59
I set up a demo repo showing the difference when using an early exit:
This build ran with f32d884 and took 22s: https://github.com/andyexeter/setup-bun-cache-test/actions/runs/7918709270
This build ran with f5c5efe and took 2m 28s: https://github.com/andyexeter/setup-bun-cache-test/actions/runs/7918734742