Skip to content

Commit

Permalink
Fixup toolchain version (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger authored Oct 4, 2024
1 parent fc5262e commit 03b1a51
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 15 deletions.
1 change: 0 additions & 1 deletion .bazelrc-buildbuddy
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ build:remote_user --remote_download_toplevel
build:ci --config=build_buddy
build:ci --remote_download_minimal
build:ci --build_metadata=ROLE=CI
build:ci --remote_download_minimal
2 changes: 1 addition & 1 deletion .github/actions/setup-build-buddy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
run: |
echo "No API key secret detected, will setup readonly cache"
echo "build:ci --config=build_buddy_readonly" > .buildbuddy-auth.rc
echo "build:ci --config=build_buddy_readonly"" > tests/.buildbuddy-auth.rc
echo "build:ci --config=build_buddy_readonly" > tests/.buildbuddy-auth.rc
- name: Set with key
env:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Module
on:
workflow_dispatch:
push:
tags:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
publish_module:
name: "Publish Module"
runs-on: ubuntu-22.04
steps:
# Checkout repository
- uses: actions/checkout@v4
with:
path: libraries/bzlmodrio-ni

- name: Create Archive
run: git archive HEAD --format=tar.gz --output="bzlmodrio-ni-${GITHUB_REF_NAME}.tar.gz"
working-directory: libraries/bzlmodrio-ni

- name: Setup archive name
run: echo "ARCHIVE_NAME=libraries/bzlmodrio-ni/bzlmodrio-ni-${GITHUB_REF_NAME}.tar.gz" >> "$GITHUB_ENV"

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: "${{ env.ARCHIVE_NAME }}"
5 changes: 2 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
module(
name = "bzlmodrio-ni",
version = "2024.2.1",
version = "2024.2.1.bcr1",
compatibility_level = 2024,
)

bazel_dep(name = "platforms", version = "0.0.9")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_java", version = "7.6.5")
bazel_dep(name = "rules_bazelrio", version = "0.0.14")
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1")
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1.bcr1")

setup_bzlmodrio_ni_cpp_dependencies = use_extension("//:maven_cpp_deps.bzl", "setup_bzlmodrio_ni_cpp_dependencies")
use_repo(
Expand Down
4 changes: 2 additions & 2 deletions private/non_bzlmod_dependencies/download_dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def download_dependencies():
# Roborio Toolchain
http_archive(
name = "rules_bzlmodrio_toolchains",
sha256 = "cd3ff046427e9c6dbc0c86a458c8cf081b8045fc3fb4265d08c0ebfc17f9cb30",
url = "https://github.com/bzlmodRio/rules_bzlmodRio_toolchains/releases/download/2024-1/rules_bzlmodRio_toolchains-2024-1.tar.gz",
sha256 = "2ef1cafce7f4fd4e909bb5de8b0dc771a934646afd55d5f100ff31f6b500df98",
url = "https://github.com/wpilibsuite/rules_bzlmodRio_toolchains/releases/download/2024-1.bcr1/rules_bzlmodRio_toolchains-2024-1.bcr1.tar.gz",
)

########################
Expand Down
1 change: 0 additions & 1 deletion tests/.bazelrc-buildbuddy
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ build:remote_user --remote_download_toplevel
build:ci --config=build_buddy
build:ci --remote_download_minimal
build:ci --build_metadata=ROLE=CI
build:ci --remote_download_minimal
2 changes: 1 addition & 1 deletion tests/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_java", version = "7.6.5")
bazel_dep(name = "rules_jvm_external", version = "6.1")
bazel_dep(name = "rules_bazelrio", version = "0.0.14")
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1")
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1.bcr1")
bazel_dep(name = "rules_pmd", version = "7.2.0")
bazel_dep(name = "rules_checkstyle", version = "10.12.2")
bazel_dep(name = "rules_wpiformat", version = "2024.34")
Expand Down
13 changes: 7 additions & 6 deletions tests/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 03b1a51

Please sign in to comment.