Skip to content

Commit

Permalink
Merge pull request #17 from erikkerber/ekerber/bzlmod
Browse files Browse the repository at this point in the history
Support consuming sign-here via bzlmod
  • Loading branch information
tinder-maxwellelliott authored Apr 9, 2024
2 parents 0e7b148 + 2b86a67 commit 778e10c
Show file tree
Hide file tree
Showing 5 changed files with 794 additions and 564 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: bazelisk test //Tests/... --xcode_version=14.3
tests-bzlmod:
name: Run tests w/bzlmod
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- run: bazelisk test //Tests/... --xcode_version=14.3 --enable_bzlmod
executable:
name: Build macos_command_line_application
runs-on: macos-13
Expand All @@ -24,3 +30,14 @@ jobs:
name: sign-here
path: bazel-bin/Sources/SignHereTool/sign-here
if-no-files-found: error
executable-bzlmod:
name: Build macos_command_line_application w/bzlmod
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- run: bazelisk build //Sources/SignHereTool:sign-here -c opt --macos_cpus=x86_64,arm64 --enable_bzlmod
- uses: actions/upload-artifact@v3
with:
name: sign-here
path: bazel-bin/Sources/SignHereTool/sign-here
if-no-files-found: error
13 changes: 11 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
bazel_dep(name = "rules_apple", version = "3.2.1", repo_name = "build_bazel_rules_apple")
module(name = "sign-here")

bazel_dep(name = "rules_apple", version = "3.5.0", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_swift", version = "1.18.0", repo_name = "build_bazel_rules_swift")
bazel_dep(name = "swift-syntax", version = "509.0.2", repo_name = "SwiftSyntax")
bazel_dep(name = "swift_argument_parser", version = "1.3.0", repo_name = "com_github_apple_swift_argument_parser")

non_module_dependencies = use_extension("//:extensions.bzl", "non_module_dependencies")
use_repo(non_module_dependencies, "data_file")
use_repo(
non_module_dependencies,
"com_github_kitura_blueecc",
"com_github_kylef_pathkit",
)
Loading

0 comments on commit 778e10c

Please sign in to comment.