Skip to content

Commit b944296

Browse files
committed
Update release job
GitOrigin-RevId: 0c95fe5b1242124b6e2ec86468fbdf44afd54e24
1 parent 4155ae9 commit b944296

2 files changed

Lines changed: 19 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,13 @@ on:
1515

1616
jobs:
1717
build:
18-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v5
2222

2323
- name: bazel build //...
24-
env:
25-
# Bazelisk will download bazel to here
26-
XDG_CACHE_HOME: ~/.cache/bazel-repo
27-
run: cd tests && bazelisk build --config=gcc11 //...
24+
run: cd tests && bazel build --config=gcc13 //...
2825

2926
- name: Prepare release notes and artifacts
3027
run: .github/workflows/release_prep.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt

.github/workflows/release_prep.sh

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,30 @@ set -o errexit -o nounset -o pipefail
1111
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
1212
TAG=${GITHUB_REF_NAME}
1313
# The prefix is chosen to match what GitHub generates for source archives
14-
PREFIX="rules_qt6-${TAG:1}"
14+
PREFIX="rules_qt6-${TAG}"
1515
ARCHIVE="rules_qt6-$TAG.tar.gz"
1616
git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip > $ARCHIVE
1717
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')
1818

1919
cat << EOF
20-
## Using WORKSPACE
21-
Paste this snippet into your `WORKSPACE.bazel` file:
20+
## Using Bzlmod
21+
Add to your `MODULE.bazel` file:
2222
\`\`\`starlark
23-
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
24-
http_archive(
25-
name = "rules_qt6",
26-
sha256 = "${SHA}",
27-
strip_prefix = "${PREFIX}",
28-
url = "https://github.com/Vertexwahn/rules_qt6/releases/download/${TAG}/${ARCHIVE}",
23+
bazel_dep(name = "rules_qt", version = "${TAG}")
24+
25+
qt = use_extension("@rules_qt//:extensions.bzl", "qt")
26+
qt.fetch()
27+
use_repo(
28+
qt,
29+
"qt_linux_x86_64",
30+
"qt_mac_aarch64",
31+
"qt_windows_x86_64",
32+
)
33+
34+
register_toolchains(
35+
"@rules_qt//tools:all"
2936
)
37+
3038
EOF
3139

3240
#awk 'f;/--SNIP--/{f=1}' e2e/smoke/WORKSPACE.bazel

0 commit comments

Comments
 (0)