diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml index e0b6d958a..e6694519c 100644 --- a/.bcr/presubmit.yml +++ b/.bcr/presubmit.yml @@ -1,12 +1,6 @@ -bcr_test_module: - module_path: "e2e/bzlmod" - matrix: - platform: ["macos"] - tasks: - build_flags: - - "--config=ios" - run_tests: - name: "Run test module" - platform: ${{ platform }} - build_targets: - - "//..." +tasks: + verify_build_targets: + name: Verify Build targets on macOS + platform: macos + build_targets: + - "@rules_ios//rules/..." diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index cd22f0d66..33ed6c80e 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -23,13 +23,15 @@ jobs: # Archive the repository # Considerations: - # - Dont package hidden files (including the .git directory) + # - Dont package development files (vscode config, etc) # - Dont package the bazel-* symlink directories - # - Dont package the tests directory + # - Dont package most of the tests directory COPYFILE_DISABLE=1 tar czvf "rules_ios.$TAG.tar.gz" \ - --exclude="./.*" \ + --exclude="./.vscode" \ --exclude="./bazel-*" \ - --exclude="./tests" \ + --exclude="./tests/framework" \ + --exclude="./tests/ios" \ + --exclude="./tests/macos" \ ./* # Create the release notes diff --git a/BUILD.bazel b/BUILD.bazel index 79d3c6e85..c8cc2467e 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -3,15 +3,10 @@ load("@build_bazel_rules_swift//swift/internal:feature_names.bzl", "SWIFT_FEATURE_USE_GLOBAL_INDEX_STORE") load("//rules:features.bzl", "feature_names") load("@bazel_skylib//lib:selects.bzl", "selects") -load("@buildifier_prebuilt//:rules.bzl", "buildifier") -buildifier( +alias( name = "buildifier", - exclude_patterns = [ - "./.git/*", - "./bazel-*/*", - ], - mode = "fix", + actual = "//tools:buildifier", ) config_setting( diff --git a/MODULE.bazel b/MODULE.bazel index 8e48ea29a..927e5a5ea 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -36,6 +36,10 @@ bazel_dep( version = "1.13.0", repo_name = "build_bazel_rules_swift", ) +bazel_dep( + name = "bazel_skylib", + version = "1.4.2", +) # Declare the development dependencies needed for rules_ios development bazel_dep( @@ -48,11 +52,6 @@ bazel_dep( version = "0.9.1", dev_dependency = True, ) -bazel_dep( - name = "bazel_skylib", - version = "1.4.2", - dev_dependency = True, -) bazel_dep( name = "stardoc", version = "0.6.2", diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index e69de29bb..2b5c23d44 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -0,0 +1,12 @@ +load("@buildifier_prebuilt//:rules.bzl", "buildifier") + +buildifier( + name = "buildifier", + exclude_patterns = [ + "./.git/*", + "./bazel-*/*", + ], + mode = "fix", + tags = ["manual"], + visibility = ["//:__pkg__"], +)