-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #565 from tweag/prepare-release-0.12
Prepare release 0.12.0
- Loading branch information
Showing
39 changed files
with
189 additions
and
72 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"homepage": "https://nix-bazel.build", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected] ", | ||
"github": "benradf", | ||
"name": "Benjamin Radford" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "aherrmann", | ||
"name": "Andreas Herrmann" | ||
} | ||
], | ||
"repository": [ | ||
"github:tweag/rules_nixpkgs" | ||
], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
bcr_test_module: | ||
module_path: "testing" | ||
matrix: | ||
platform: ["ubuntu2204"] | ||
bazel: | ||
- "6.x" | ||
tasks: | ||
run_tests: | ||
name: "Run test module" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
environment: | ||
# The Nix installer updates ~/.profile to set PATH. However, the Bazel | ||
# CI setup seems to disregard ~/.profile. So we set PATH manually here. | ||
PATH: /var/lib/buildkite-agent/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
shell_commands: | ||
- curl -L https://nixos.org/nix/install | sh -s -- --no-daemon | ||
test_targets: | ||
- "//..." |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"integrity": "", | ||
"strip_prefix": "{REPO}-{VERSION}/toolchains/nodejs", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.tar.gz" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Prepare new release (for maintainers only) | ||
title: Prepare release MAJOR.MINOR.PATCH | ||
about: Steps to work through in order to publish a new release | ||
|
||
--- | ||
|
||
- [ ] Read through this process in its entirety so you understand it. | ||
- [ ] Create and checkout a new release preparation branch, named | ||
`release-<major>.<minor>.<patch>`. | ||
- [ ] If the minimal Bazel version has changed: | ||
- [ ] update it in [the `README`][readme] and in `presubmit.yml` files from the `.bcr` folder | ||
- [ ] add a note about this change to the [`CHANGELOG`][changelog] | ||
- [ ] List user facing changes in the [`CHANGELOG`][changelog] by summarising all significant | ||
pull requests since the last release. Specifically: | ||
- Add a "Highlights" section for major improvements/changes. | ||
- Create "Added", "Removed", "Changed" and "Fixed" sections, as necessary. | ||
- If relevant, add links to the corresponding PRs to the entries. | ||
- Look through: | ||
* [merged PRs](https://github.com/tweag/rules_nixpkgs/pulls?q=is:pr+base:master+merged:>2023-10-18+-author:app/github-actions+-author:app/dependabot) or | ||
* `git log master ^v0.x.x --oneline --merges --grep='pull request' --grep='#' | grep -v 'tweag/dependabot/github_actions/' | grep -v 'tweag/update_flake_lock_action'` | ||
- [ ] Bump version numbers in `MODULE.bazel` and the registry, rename files | ||
``` | ||
grep '0.10.0 -r --exclude-dir=.git lists occurences of 0.10.0 in files | ||
find -path ./.git -prune -o -name '*0.10.0*' -print lists occurences of 0.10.0 in names | ||
``` | ||
- [ ] Push the `release-<major>.<minor>.<patch>` branch and open a PR, | ||
go through review and merge upon success. | ||
- [ ] Trigger the `Prepare Release` workflow | ||
- either via the Github UI **or** | ||
- run `gh workflow run -f version=<major>.<minor>.<patch> 'Prepare Release'` using the Github CLI | ||
- [ ] Go to the [releases], open the draft release which was created to inspect it | ||
- Do the code snippets look valid? | ||
- Is there a release artifact attached to it? | ||
- If you're happy, publish the release... :rocket: | ||
- [ ] Announce the new version on Twitter by asking someone with access. | ||
[changelog]: /CHANGELOG.md | ||
[readme]: /README.md | ||
[releases]: https://github.com/tweag/rules_nixpkgs/releases |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,44 @@ | ||
# Cut a release whenever a new tag is pushed to the repo. | ||
name: Release | ||
# Create a draft release when triggered via Github's UI or Github CLI | ||
name: Prepare Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to release (e.g. 0.11.0)' | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
tests: | ||
# Do only release when CI succeeds. | ||
uses: ./.github/workflows/workflow.yaml | ||
|
||
release: | ||
# Do only release when CI succeeds. | ||
needs: [tests] | ||
name: Prepare Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check version | ||
run: | | ||
if ! [[ '${{ inputs.version }}' =~ ^[0-9]+[.][0-9]+[.][0-9]+$ ]]; then | ||
echo '${{ inputs.version }} does not match expected format `major.minor.patch`' >&2 | ||
exit 1 | ||
fi | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Get version number | ||
id: get-version | ||
run: set -x; echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT | ||
with: | ||
ref: master # only create releases from main branch | ||
- name: Read section from CHANGELOG.md | ||
id: extract-changelog | ||
uses: sean0x42/markdown-extract@v2 | ||
with: | ||
file: CHANGELOG.md | ||
pattern: ${{ steps.get-version.outputs.version }} | ||
pattern: ${{ inputs.version }} | ||
- name: Prepare release notes and artifacts | ||
run: | | ||
.github/workflows/release_prep.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt | ||
.github/workflows/release_prep.sh v${{ inputs.version }} > release_notes.txt | ||
printf '${{ steps.extract-changelog.outputs.markdown }}' >> release_notes.txt | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
draft: true | ||
prerelease: true | ||
# Use GH feature to populate the changelog automatically | ||
generate_release_notes: true | ||
body_path: release_notes.txt | ||
fail_on_unmatched_files: true | ||
files: rules_nixpkgs*-*.tar.gz | ||
- name: Create draft release | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release create --draft --notes-file release_notes.txt v${{ inputs.version }} rules_nixpkgs-${{ inputs.version }}.tar.gz |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# rules_nixpkgs guide template | ||
rules_nixpkgs guide template | ||
============================ | ||
|
||
A simple C++ project used as an example in the [rules_nixpkgs guide](../../guide.md): see there for more information. |
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ | |
"name": "Andreas Herrmann" | ||
} | ||
], | ||
"versions": ["0.11.1"], | ||
"versions": ["0.12.0"], | ||
"yanked_versions": [] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module( | ||
name = "rules_nixpkgs_cc", | ||
version = "0.11.1", | ||
version = "0.12.0", | ||
) | ||
|
||
bazel_dep(name = "rules_nixpkgs_core", version = "0.11.1") | ||
bazel_dep(name = "rules_nixpkgs_core", version = "0.12.0") | ||
bazel_dep(name = "bazel_skylib", version = "1.0.3") | ||
bazel_dep(name = "rules_cc", version = "0.0.1") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module( | ||
name = "rules_nixpkgs_go", | ||
version = "0.11.1", | ||
version = "0.12.0", | ||
) | ||
|
||
bazel_dep(name = "rules_nixpkgs_core", version = "0.11.1") | ||
bazel_dep(name = "rules_nixpkgs_core", version = "0.12.0") | ||
bazel_dep(name = "rules_go", repo_name = "io_bazel_rules_go", version = "0.39.1") | ||
bazel_dep(name = "bazel_skylib", version = "1.0.3") | ||
bazel_dep(name = "platforms", version = "0.0.4") |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bazel-* | ||
testing |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import %workspace%/../../../.bazelrc.remote-cache | ||
import %workspace%/../../../.bazelrc.common | ||
import %workspace%/../../../.bazelrc.cc | ||
import %workspace%/../../../.bazelrc.java |
File renamed without changes.
Oops, something went wrong.