Skip to content

chore: Bump Grpc.Net.Client from 2.71.0 to 2.76.0 #265

chore: Bump Grpc.Net.Client from 2.71.0 to 2.76.0

chore: Bump Grpc.Net.Client from 2.71.0 to 2.76.0 #265

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: RC
on:
push:
branches:
- "**"
- "!dependabot/**"
tags:
- "*-rc*"
pull_request:
concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
jobs:
target:
name: Target
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
version: ${{ steps.detect.outputs.version }}
version_suffix: ${{ steps.detect.outputs.version_suffix }}
rc: ${{ steps.detect.outputs.rc }}
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Detect
id: detect
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
version=$(grep -E -o '<VersionPrefix>(.*)</VersionPrefix>' \
Directory.Build.props |
sed -E -e 's,</?VersionPrefix>,,g')
if [ "${GITHUB_REF_TYPE}" = "tag" ]; then
rc=${GITHUB_REF_NAME#*-rc}
version_suffix=""
else
rc=$(date +%Y%m%d)
version_suffix="${rc}"
version="${version}-${version_suffix}"
fi
echo "version=${version}" >> ${GITHUB_OUTPUT}
echo "version_suffix=${version_suffix}" >> ${GITHUB_OUTPUT}
echo "rc=${rc}" >> ${GITHUB_OUTPUT}
source:
name: Source
needs: target
runs-on: ubuntu-latest
timeout-minutes: 5
env:
VERSION: ${{ needs.target.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Archive
run: |
id="apache-arrow-dotnet-${VERSION}"
tar_gz="${id}.tar.gz"
echo "TAR_GZ=${tar_gz}" >> ${GITHUB_ENV}
git archive HEAD --prefix "${id}/" --output "${tar_gz}"
sha256sum "${tar_gz}" > "${tar_gz}.sha256"
sha512sum "${tar_gz}" > "${tar_gz}.sha512"
- name: Upload
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: release-source
path: |
apache-arrow-dotnet-*.tar.gz*
- name: Audit
run: |
dev/release/run_rat.sh "${TAR_GZ}"
package:
name: Package
needs: target
runs-on: ubuntu-latest
timeout-minutes: 15
env:
VERSION_SUFFIX: ${{ needs.target.outputs.version_suffix }}
steps:
- name: Checkout
uses: actions/checkout@v6.0.1
with:
fetch-depth: 0
- name: Build
run: |
ci/scripts/pack.sh "$(pwd)" "${VERSION_SUFFIX}"
- name: Prepare artifacts
run: |
shopt -s globstar
cp artifacts/**/*.{,s}nupkg ./
for artifact in *.{,s}nupkg; do
sha256sum "${artifact}" > "${artifact}.sha256"
sha512sum "${artifact}" > "${artifact}.sha512"
done
- name: Upload
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: release-package
path: |
*.nupkg
*.sha256
*.sha512
*.snupkg
verify:
name: Verify
needs:
- package
- source
- target
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
dotnet-version:
- 8.0.x
runs-on:
- macos-latest
- ubuntu-latest
- windows-latest
env:
RC: ${{ needs.target.outputs.rc }}
VERSION: ${{ needs.target.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup .NET
uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Setup Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: 3
- name: Download
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
pattern: release-*
- name: Verify
env:
VERIFY_BINARY: 1
VERIFY_DEFAULT: 0
VERIFY_SOURCE: 1
shell: bash
run: |
mv release-*/* ./
dev/release/verify_rc.sh "${VERSION}" "${RC}"
docs:
name: Documentation
needs:
- target
runs-on: ubuntu-latest
timeout-minutes: 5
env:
VERSION: ${{ needs.target.outputs.version }}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Build documentation
shell: bash
run: ci/scripts/docs.sh $(pwd)
- name: Package
run: |
id="apache-arrow-dotnet-docs-${VERSION}"
tar_gz="${id}.tar.gz"
mv docs/_site "${id}"
tar czf "${tar_gz}" "${id}"
sha256sum "${tar_gz}" > "${tar_gz}.sha256"
sha512sum "${tar_gz}" > "${tar_gz}.sha512"
- name: Upload
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: release-docs
path: |
apache-arrow-dotnet-docs-*.tar.gz*
- name: Upload pages
if: |
github.event_name == 'push' &&
github.repository != 'apache/arrow-dotnet'
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: apache-arrow-dotnet-docs-${{ env.VERSION }}
- name: Deploy for production
if: |
github.event_name == 'push' &&
github.repository == 'apache/arrow-dotnet' &&
github.ref_name == 'main'
run: |
ci/scripts/update_site.sh "${VERSION}"
cd site
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if [ "$(git diff --cached)" != "" ]; then
git commit -m "Update docs for ${GITHUB_SHA}"
git push origin "$(git branch --show-current)"
fi
docs-deploy-fork:
name: Deploy on fork
if: >-
github.event_name == 'push' &&
github.repository != 'apache/arrow-dotnet'
needs:
- docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
upload:
name: Upload
needs:
- docs
- target
- verify
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
env:
RC: ${{ needs.target.outputs.rc }}
VERSION: ${{ needs.target.outputs.version }}
steps:
- name: Download
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
pattern: release-*
- name: Upload
if: github.ref_type == 'tag'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${GITHUB_REF_NAME} \
--generate-notes \
--prerelease \
--repo ${GITHUB_REPOSITORY} \
--title "Apache Arrow .NET ${VERSION} RC${RC}" \
--verify-tag \
release-*/*