File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616jobs :
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
Original file line number Diff line number Diff 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
1212TAG=${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} "
1515ARCHIVE=" rules_qt6-$TAG .tar.gz"
1616git archive --format=tar --prefix=${PREFIX} / ${TAG} | gzip > $ARCHIVE
1717SHA=$( shasum -a 256 $ARCHIVE | awk ' {print $1}' )
1818
1919cat << 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+
3038EOF
3139
3240# awk 'f;/--SNIP--/{f=1}' e2e/smoke/WORKSPACE.bazel
You can’t perform that action at this time.
0 commit comments