-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebase to 4.8.2 without patches (#17)
Just rebasing this to 4.8.2 so that #16 has a cleaner looking merge. This undoes all of the changes we had, but since we rebased, it has different commit hashes. See tags/upstream-4.8.2 for the upstream commit. --------- Signed-off-by: Matt Robinson <[email protected]> Co-authored-by: Matt Robinson <[email protected]> Co-authored-by: Cong Shi <[email protected]> Co-authored-by: Jerry Marino <[email protected]> Co-authored-by: Derek Ostrander (derko) <[email protected]> Co-authored-by: Luis Padron <[email protected]> Co-authored-by: Justin Martin <[email protected]> Co-authored-by: mccorkill1 <[email protected]> Co-authored-by: Thiago Cruz <[email protected]> Co-authored-by: Matt Robinson <[email protected]> Co-authored-by: Qing Yang <[email protected]> Co-authored-by: Qing Yang <[email protected]> Co-authored-by: Steven Hepting <[email protected]> Co-authored-by: John Szumski <[email protected]> Co-authored-by: Su Xiaofeng <[email protected]> Co-authored-by: Angela Guardia <[email protected]> Co-authored-by: John Szumski <[email protected]> Co-authored-by: Karim Alweheshy <[email protected]> Co-authored-by: Karim Alweheshy <[email protected]> Co-authored-by: Cody Vandermyn <[email protected]> Co-authored-by: Cody Vandermyn <[email protected]> Co-authored-by: tymurmustafaiev <[email protected]> Co-authored-by: Timur Mustafaev <[email protected]>
- Loading branch information
1 parent
2e4ed21
commit 4e09120
Showing
465 changed files
with
14,226 additions
and
8,330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.0.0 | ||
7.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"homepage": "https://github.com/bazel-ios/rules_ios", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"name": "rules_ios Maintainers" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "luispadron", | ||
"name": "Luis Padron" | ||
} | ||
], | ||
"repository": [ | ||
"github:bazel-ios/rules_ios" | ||
], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
matrix: | ||
bazel: ["6.x", "7.x"] | ||
tasks: | ||
verify_build_targets_bazel_6: | ||
name: Verify Build targets on macOS with Bazel 6 | ||
platform: macos_arm64 | ||
bazel: 6.x | ||
build_targets: | ||
- "@rules_ios//rules/..." | ||
verify_build_targets_bazel_7: | ||
name: Verify Build targets on macOS with Bazel 7 | ||
platform: macos_arm64 | ||
bazel: 7.x | ||
build_targets: | ||
- "@rules_ios//rules/..." | ||
build_flags: | ||
- "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"integrity": "", | ||
"strip_prefix": "", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}.{TAG}.tar.gz" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Create Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'The new version to tag, ex: x.x.x' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Create Release | ||
run: | | ||
set -euo pipefail | ||
git config user.name "Release Workflow" | ||
git config user.email "[email protected]" | ||
# Archive the repository | ||
# Considerations: | ||
# - Dont package development files (vscode config, etc) | ||
# - Dont package the bazel-* symlink directories | ||
# - Dont package most of the tests directory | ||
COPYFILE_DISABLE=1 tar czvf "rules_ios.$TAG.tar.gz" \ | ||
--exclude="./.vscode" \ | ||
--exclude="./bazel-*" \ | ||
--exclude="./tests/framework" \ | ||
--exclude="./tests/ios" \ | ||
--exclude="./tests/macos" \ | ||
./* | ||
# Create the release notes | ||
./.github/workflows/generate_release_notes.sh "$TAG" | tee notes.md | ||
# Create the release | ||
gh release create "$TAG" \ | ||
--title "$TAG" \ | ||
--target "$GITHUB_REF_NAME" \ | ||
--generate-notes \ | ||
--notes-file notes.md \ | ||
"rules_ios.$TAG.tar.gz" | ||
env: | ||
TAG: ${{ inputs.tag }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/bin/bash | ||
|
||
set -exuo pipefail | ||
|
||
# This script generates release notes for a release. | ||
# It uses the new tag and archive to generate a workspace snippet. | ||
# It is primarily used by the `create_release.yml` workflow. | ||
# Args: | ||
# - The first argument is the new version number. | ||
|
||
readonly new_version=$1 | ||
readonly release_archive="rules_ios.$new_version.tar.gz" | ||
|
||
sha=$(shasum -a 256 "$release_archive" | cut -d " " -f1) | ||
|
||
cat <<EOF | ||
### Bzlmod Snippet | ||
\`\`\`bzl | ||
bazel_dep(name = "rules_ios", version = "$new_version", repo_name = "build_bazel_rules_ios") | ||
\`\`\` | ||
### Workspace Snippet | ||
\`\`\`bzl | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
http_archive( | ||
name = "build_bazel_rules_ios", | ||
sha256 = "$sha", | ||
url = "https://github.com/bazel-ios/rules_ios/releases/download/$new_version/rules_ios.$new_version.tar.gz", | ||
) | ||
load( | ||
"@build_bazel_rules_ios//rules:repositories.bzl", | ||
"rules_ios_dependencies" | ||
) | ||
rules_ios_dependencies() | ||
load( | ||
"@build_bazel_rules_apple//apple:repositories.bzl", | ||
"apple_rules_dependencies", | ||
) | ||
apple_rules_dependencies() | ||
load( | ||
"@build_bazel_rules_swift//swift:repositories.bzl", | ||
"swift_rules_dependencies", | ||
) | ||
swift_rules_dependencies() | ||
load( | ||
"@build_bazel_apple_support//lib:repositories.bzl", | ||
"apple_support_dependencies", | ||
) | ||
apple_support_dependencies() | ||
load( | ||
"@com_google_protobuf//:protobuf_deps.bzl", | ||
"protobuf_deps", | ||
) | ||
protobuf_deps() | ||
\`\`\` | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Sets up the CI environment. | ||
# | ||
# Required environment variables: | ||
# - XCODE_VERSION: The version of Xcode to use. | ||
|
||
# GitHub runners are hitting 'module not found pkg_resources' required by prepare_sim.py | ||
pip3 install setuptools==69.5.1 --break-system-packages | ||
|
||
# If flag --no-bzlmod is passed, writes a user.bazelrc file to disable Bzlmod. | ||
if [[ "$*" == *--no-bzlmod* ]]; then | ||
echo "build --noenable_bzlmod" >> user.bazelrc | ||
fi | ||
|
||
# Add the ci config override. | ||
echo "common --config=ci" >> user.bazelrc | ||
|
||
echo "Selecting Xcode for environment" | ||
echo "Xcode before: $(xcode-select -p)" | ||
sudo xcode-select -s "/Applications/Xcode_$XCODE_VERSION.app" | ||
echo "Xcode after: $(xcode-select -p)" | ||
|
||
echo "Running with environment:" | ||
printenv |
Oops, something went wrong.