-
Notifications
You must be signed in to change notification settings - Fork 94
Support rules_apple 3.x.x #773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,8 +82,8 @@ jobs: | |
| name: bazel-testlogs | ||
| path: bazel-testlogs | ||
|
|
||
| lts_ios_integration_tests: | ||
| name: Build and Test ( Virtual Frameworks + LTS ) | ||
| bazel_5_ios_integration_tests: | ||
| name: Build and Test ( Virtual Frameworks + Bazel 5 ) | ||
| runs-on: macos-12 | ||
| env: | ||
| USE_BAZEL_VERSION: 5.3.2 | ||
|
|
@@ -109,6 +109,31 @@ jobs: | |
| name: bazel-testlogs | ||
| path: bazel-testlogs | ||
|
|
||
| rules_apple_2_ios_integration_tests: | ||
| name: Build and Test ( Virtual Frameworks + rules_apple 2.x ) | ||
| runs-on: macos-12 | ||
| env: | ||
| USE_BAZEL_VERSION: 6.1.2 | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Preflight Env | ||
| run: .github/workflows/preflight_env.sh --no-bzlmod | ||
| - name: Build and Test | ||
| run: | | ||
| # iOS tests | ||
| bazelisk build \ | ||
| --config=ci_with_caches \ | ||
| --config=ios \ | ||
| --config=vfs \ | ||
| -- \ | ||
| //tests/ios/... | ||
|
|
||
| - uses: actions/upload-artifact@v2 | ||
| if: failure() | ||
| with: | ||
| name: bazel-testlogs | ||
| path: bazel-testlogs | ||
|
|
||
| build_arm64_simulator: | ||
| name: Build arm64 Simulator | ||
| runs-on: macos-12 | ||
|
|
@@ -149,7 +174,10 @@ jobs: | |
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Preflight Env | ||
| run: .github/workflows/preflight_env.sh | ||
| # stardoc latest version and bzlmod is broken with this in a few ways | ||
| # Please revert this to the version which worked reasonablly: | ||
| # https://github.com/bazelbuild/stardoc/issues/192 | ||
| run: .github/workflows/preflight_env.sh --no-bzlmod | ||
| # Note: we need to pass the absolute to the Bazel run | ||
| - name: buildifier | ||
| run: | | ||
|
|
@@ -200,12 +228,16 @@ jobs: | |
| path: bazel-testlogs | ||
|
|
||
| multi_arch_support: | ||
| # i386 was removed on rules_apple 3.x.x - this test case needs reworking | ||
| # to exemplify fat binaries on the latest version | ||
| name: Build iOS App for Multiple Architecture | ||
| runs-on: macos-12 | ||
| env: | ||
| USE_BAZEL_VERSION: 6.1.2 | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Preflight Env | ||
| run: .github/workflows/preflight_env.sh | ||
| run: .github/workflows/preflight_env.sh --no-bzlmod | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bzlmod support was merged with 6.1.2, why should this be disabled here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please find in in the proceeding comment that it uses 6.1.2 and rules_apple 2 - where bzlmod is hardcoded to use 3.0.0.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gotcha so it doesnt work yet with rules_apple 3. I guess I got confused because we're essentially using Bazel Not for this PR, but in the future I wonder if specifying these Bazel version + rules_apple versions wouldn't be better in a specific
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: I'd still explicitly say in that comment why that implies Saw what @luispadron is talking about in other repos too and also like the idea. Wondering if we should create "Feature Request" templates for issues in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah it basically exists because people aren't using bzlmod on 5 and 6 so it's good to have some coverage of both ways to test this. Though, we could bump to a later version but needs more consideration. Also, the way it's configured now get's us a larger matrix of bzlmod vs non bzlmod across a few versions. Though bzlmod support works on all the versions in the repo 5.4.1, 6.x.x we'd still like like the coverage to we don't break it - but probably not testing 100% of permutations |
||
| - name: Build App | ||
| run: | | ||
| bazelisk build \ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,5 +13,6 @@ bzl_library( | |
| "xcspec_evals.bzl", | ||
| "xcspecs.bzl", | ||
| ], | ||
| tags = ["manual"], | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.