Skip to content

Commit 03b1a51

Browse files
authored
Fixup toolchain version (#22)
1 parent fc5262e commit 03b1a51

File tree

8 files changed

+46
-15
lines changed

8 files changed

+46
-15
lines changed

.bazelrc-buildbuddy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ build:remote_user --remote_download_toplevel
2525
build:ci --config=build_buddy
2626
build:ci --remote_download_minimal
2727
build:ci --build_metadata=ROLE=CI
28-
build:ci --remote_download_minimal

.github/actions/setup-build-buddy/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
run: |
1717
echo "No API key secret detected, will setup readonly cache"
1818
echo "build:ci --config=build_buddy_readonly" > .buildbuddy-auth.rc
19-
echo "build:ci --config=build_buddy_readonly"" > tests/.buildbuddy-auth.rc
19+
echo "build:ci --config=build_buddy_readonly" > tests/.buildbuddy-auth.rc
2020
2121
- name: Set with key
2222
env:

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish Module
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags:
6+
- '*'
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
publish_module:
14+
name: "Publish Module"
15+
runs-on: ubuntu-22.04
16+
steps:
17+
# Checkout repository
18+
- uses: actions/checkout@v4
19+
with:
20+
path: libraries/bzlmodrio-ni
21+
22+
- name: Create Archive
23+
run: git archive HEAD --format=tar.gz --output="bzlmodrio-ni-${GITHUB_REF_NAME}.tar.gz"
24+
working-directory: libraries/bzlmodrio-ni
25+
26+
- name: Setup archive name
27+
run: echo "ARCHIVE_NAME=libraries/bzlmodrio-ni/bzlmodrio-ni-${GITHUB_REF_NAME}.tar.gz" >> "$GITHUB_ENV"
28+
29+
- name: Release
30+
uses: softprops/action-gh-release@v2
31+
if: startsWith(github.ref, 'refs/tags/')
32+
with:
33+
files: "${{ env.ARCHIVE_NAME }}"

MODULE.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
module(
22
name = "bzlmodrio-ni",
3-
version = "2024.2.1",
3+
version = "2024.2.1.bcr1",
44
compatibility_level = 2024,
55
)
66

77
bazel_dep(name = "platforms", version = "0.0.9")
88
bazel_dep(name = "rules_cc", version = "0.0.9")
99
bazel_dep(name = "rules_java", version = "7.6.5")
10-
bazel_dep(name = "rules_bazelrio", version = "0.0.14")
11-
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1")
10+
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1.bcr1")
1211

1312
setup_bzlmodrio_ni_cpp_dependencies = use_extension("//:maven_cpp_deps.bzl", "setup_bzlmodrio_ni_cpp_dependencies")
1413
use_repo(

private/non_bzlmod_dependencies/download_dependencies.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def download_dependencies():
2626
# Roborio Toolchain
2727
http_archive(
2828
name = "rules_bzlmodrio_toolchains",
29-
sha256 = "cd3ff046427e9c6dbc0c86a458c8cf081b8045fc3fb4265d08c0ebfc17f9cb30",
30-
url = "https://github.com/bzlmodRio/rules_bzlmodRio_toolchains/releases/download/2024-1/rules_bzlmodRio_toolchains-2024-1.tar.gz",
29+
sha256 = "2ef1cafce7f4fd4e909bb5de8b0dc771a934646afd55d5f100ff31f6b500df98",
30+
url = "https://github.com/wpilibsuite/rules_bzlmodRio_toolchains/releases/download/2024-1.bcr1/rules_bzlmodRio_toolchains-2024-1.bcr1.tar.gz",
3131
)
3232

3333
########################

tests/.bazelrc-buildbuddy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ build:remote_user --remote_download_toplevel
2525
build:ci --config=build_buddy
2626
build:ci --remote_download_minimal
2727
build:ci --build_metadata=ROLE=CI
28-
build:ci --remote_download_minimal

tests/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ bazel_dep(name = "rules_cc", version = "0.0.9")
99
bazel_dep(name = "rules_java", version = "7.6.5")
1010
bazel_dep(name = "rules_jvm_external", version = "6.1")
1111
bazel_dep(name = "rules_bazelrio", version = "0.0.14")
12-
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1")
12+
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1.bcr1")
1313
bazel_dep(name = "rules_pmd", version = "7.2.0")
1414
bazel_dep(name = "rules_checkstyle", version = "10.12.2")
1515
bazel_dep(name = "rules_wpiformat", version = "2024.34")

tests/MODULE.bazel.lock

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)