diff options
author | Cronet Mainline Eng <cronet-mainline-eng+copybara@google.com> | 2024-06-01 00:34:53 +0900 |
---|---|---|
committer | Motomu Utsumi <motomuman@google.com> | 2024-06-01 01:09:19 +0900 |
commit | b66ce594f84a102bf71c3e2754d9c0bfdd620b85 (patch) | |
tree | f9fe122e9fb8b203a1cfc6955deb5e84ad4f341a /third_party/re2/src/.github | |
parent | 168f7e285114554eb2ac9bc22343cca461355b50 (diff) | |
download | cronet-b66ce594f84a102bf71c3e2754d9c0bfdd620b85.tar.gz |
Import Cronet version 123.0.6312.40
FolderOrigin-RevId: /tmp/copybara-origin/src
Change-Id: Ie1ecf4a8ee6c6263302f0e88e86baa49a8052442
Diffstat (limited to 'third_party/re2/src/.github')
-rw-r--r-- | third_party/re2/src/.github/workflows/ci-bazel.yml | 7 | ||||
-rw-r--r-- | third_party/re2/src/.github/workflows/ci-cmake.yml | 6 | ||||
-rw-r--r-- | third_party/re2/src/.github/workflows/ci.yml | 6 | ||||
-rw-r--r-- | third_party/re2/src/.github/workflows/pages.yml | 41 | ||||
-rw-r--r-- | third_party/re2/src/.github/workflows/pr.yml | 4 | ||||
-rw-r--r-- | third_party/re2/src/.github/workflows/python.yml | 51 |
6 files changed, 79 insertions, 36 deletions
diff --git a/third_party/re2/src/.github/workflows/ci-bazel.yml b/third_party/re2/src/.github/workflows/ci-bazel.yml index d203d2d42..a12a7c580 100644 --- a/third_party/re2/src/.github/workflows/ci-bazel.yml +++ b/third_party/re2/src/.github/workflows/ci-bazel.yml @@ -14,8 +14,9 @@ jobs: env: BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v3 - # TODO(junyer): Use `v2` whenever a new release is tagged. - - uses: bazelbuild/setup-bazelisk@6244971d4f7ba9aca943c2f3ede2bbd813fcca51 + - uses: actions/checkout@v4 + - uses: p0deje/setup-bazel@0.6.0 + with: + bazelisk-version: '1.x' - run: .github/bazel.sh shell: bash diff --git a/third_party/re2/src/.github/workflows/ci-cmake.yml b/third_party/re2/src/.github/workflows/ci-cmake.yml index 2287779ff..a49fd53b1 100644 --- a/third_party/re2/src/.github/workflows/ci-cmake.yml +++ b/third_party/re2/src/.github/workflows/ci-cmake.yml @@ -15,7 +15,7 @@ jobs: matrix: build_shared_libs: [OFF, ON] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install CMake run: | apt update -y @@ -35,7 +35,7 @@ jobs: matrix: build_shared_libs: [OFF, ON] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Abseil, GoogleTest and Benchmark run: | brew update @@ -50,7 +50,7 @@ jobs: matrix: build_shared_libs: [OFF, ON] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Abseil, GoogleTest and Benchmark run: | vcpkg update diff --git a/third_party/re2/src/.github/workflows/ci.yml b/third_party/re2/src/.github/workflows/ci.yml index 41a892d35..445da78d6 100644 --- a/third_party/re2/src/.github/workflows/ci.yml +++ b/third_party/re2/src/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: # (The other two flags are the default provided for CXXFLAGS in Makefile.) CXXFLAGS: -O3 -g -std=c++${{ matrix.ver }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Abseil, GoogleTest and Benchmark run: | brew update @@ -39,7 +39,7 @@ jobs: CC: clang-${{ matrix.ver }} CXX: clang++-${{ matrix.ver }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Clang ${{ matrix.ver }} run: | # Avoid `Conflicts: python3-lldb-x.y` between packages. @@ -65,7 +65,7 @@ jobs: CC: gcc-${{ matrix.ver }} CXX: g++-${{ matrix.ver }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Abseil, GoogleTest and Benchmark run: | sudo apt update -y diff --git a/third_party/re2/src/.github/workflows/pages.yml b/third_party/re2/src/.github/workflows/pages.yml new file mode 100644 index 000000000..0f0a57a15 --- /dev/null +++ b/third_party/re2/src/.github/workflows/pages.yml @@ -0,0 +1,41 @@ +name: Pages +on: + workflow_dispatch: +permissions: + contents: read +jobs: + build: + runs-on: ubuntu-latest + container: + image: emscripten/emsdk + # Don't run as root within the container. + # Neither Git nor Bazel appreciates that. + # 1001 is the GitHub Actions runner user. + options: --init --user 1001 + env: + BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Bazel fails if the username is unknown. + USER: runner + steps: + - uses: actions/checkout@v4 + - uses: p0deje/setup-bazel@0.6.0 + with: + bazelisk-version: '1.x' + - run: app/build.sh + shell: bash + - uses: actions/upload-pages-artifact@v3 + with: + path: app/deploy + deploy: + needs: + - build + permissions: + contents: read + # Needed for Pages deployment. + id-token: write + pages: write + environment: github-pages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/deploy-pages@v4 diff --git a/third_party/re2/src/.github/workflows/pr.yml b/third_party/re2/src/.github/workflows/pr.yml index e3f94fa06..267dd5d7d 100644 --- a/third_party/re2/src/.github/workflows/pr.yml +++ b/third_party/re2/src/.github/workflows/pr.yml @@ -15,8 +15,8 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/github-script@v6 + - uses: actions/checkout@v4 + - uses: actions/github-script@v7 with: script: | const fs = require('fs'); diff --git a/third_party/re2/src/.github/workflows/python.yml b/third_party/re2/src/.github/workflows/python.yml index 0767cc5a8..892922e48 100644 --- a/third_party/re2/src/.github/workflows/python.yml +++ b/third_party/re2/src/.github/workflows/python.yml @@ -23,7 +23,7 @@ jobs: arch: - { name: X64, python-name: x86_64, runs-on: [ubuntu-latest] } - { name: ARM64, python-name: aarch64, runs-on: [self-hosted, linux, arm64] } - os: [manylinux2014, manylinux_2_28] + os: [manylinux_2_28] ver: ['3.8', '3.9', '3.10', '3.11', '3.12'] env: BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -31,12 +31,13 @@ jobs: # Bazel fails if the username is unknown. USER: runner steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Stash the timestamp for the commit SHA that triggered the workflow. - run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}" shell: bash - # TODO(junyer): Use `v2` whenever a new release is tagged. - - uses: bazelbuild/setup-bazelisk@6244971d4f7ba9aca943c2f3ede2bbd813fcca51 + - uses: p0deje/setup-bazel@0.6.0 + with: + bazelisk-version: '1.x' - name: Prepare Python ${{ matrix.ver }} environment run: | "${PYTHON}" -m pip install --upgrade pip @@ -57,21 +58,23 @@ jobs: "${PYTHON}" re2_test.py shell: bash working-directory: python - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ hashFiles('python/google_re2-*.whl') }} path: python/google_re2-*.whl retention-days: 1 wheel-macos: name: macOS ${{ matrix.os }}, ${{ matrix.arch.name }}, Python ${{ matrix.ver }} - runs-on: macos-${{ matrix.os }} + runs-on: macos-${{ matrix.os }}-large strategy: fail-fast: false matrix: arch: - { name: X64, bazel-name: x86_64, python-name: x86_64 } - { name: ARM64, bazel-name: arm64, python-name: arm64 } - os: [11, 12, 13] + # TODO(junyer): Stop cross-compiling after we drop support for macOS 12; + # instead, specify `-large` suffix on X64 and `-xlarge` suffix on ARM64. + os: [12, 13, 14] ver: ['3.8', '3.9', '3.10', '3.11', '3.12'] env: BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -81,13 +84,14 @@ jobs: # Otherwise, Python refuses to install the built wheel! SYSTEM_VERSION_COMPAT: 0 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Stash the timestamp for the commit SHA that triggered the workflow. - run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}" shell: bash - # TODO(junyer): Use `v2` whenever a new release is tagged. - - uses: bazelbuild/setup-bazelisk@6244971d4f7ba9aca943c2f3ede2bbd813fcca51 - - uses: actions/setup-python@v4 + - uses: p0deje/setup-bazel@0.6.0 + with: + bazelisk-version: '1.x' + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.ver }} - name: Prepare Python ${{ matrix.ver }} environment @@ -111,7 +115,7 @@ jobs: python re2_test.py shell: bash working-directory: python - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ hashFiles('python/google_re2-*.whl') }} path: python/google_re2-*.whl @@ -131,22 +135,19 @@ jobs: BAZEL_CPU: ${{ matrix.arch.bazel-name }}_windows PLAT_NAME: ${{ matrix.arch.python-name }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Stash the timestamp for the commit SHA that triggered the workflow. - run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}" shell: bash - # Avoid the Chocolatey install of Bazel getting in the way; - # `bazelbuild/setup-bazelisk` doesn't work for some reason. - - run: | - choco uninstall -y bazel - choco install -y bazelisk - shell: bash + - uses: p0deje/setup-bazel@0.6.0 + with: + bazelisk-version: '1.x' # Lowercase the architecture name for `actions/setup-python`. - run: | ARCHITECTURE=${{ matrix.arch.name }} echo "architecture=${ARCHITECTURE,,}" >> "${GITHUB_ENV}" shell: bash - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.ver }} architecture: ${{ env.architecture }} @@ -170,7 +171,7 @@ jobs: python re2_test.py shell: bash working-directory: python - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ hashFiles('python/google_re2-*.whl') }} path: python/google_re2-*.whl @@ -182,11 +183,11 @@ jobs: - wheel-windows runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Stash the timestamp for the commit SHA that triggered the workflow. - run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}" shell: bash - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.x' - name: Prepare Python 3.x environment @@ -202,7 +203,7 @@ jobs: python -m build --sdist shell: bash working-directory: python - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: path: python - name: Set build number to ${{ inputs.build }} @@ -221,4 +222,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} - packages_dir: python/dist + packages-dir: python/dist |