Skip to content

Commit

Permalink
Add github action linux/aarch64 build
Browse files Browse the repository at this point in the history
* added release environment
* parameterised cache bucket name
* parameterised python repository
  • Loading branch information
markomitos committed Jan 17, 2025
1 parent 4d163a1 commit 03b2048
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on: # yamllint disable-line rule:truthy
# postsubmit
push:
branches:
- main
- arm-build
paths:
- 'tensorflow_federated/version.py'

Expand All @@ -38,8 +38,8 @@ jobs:
# * Repository is not a fork.
# * Branch is `main` (for workflow_dispatch trigger).
if: |
github.repository == 'google-parfait/tensorflow-federated'
&& github.ref == 'refs/heads/main'
github.repository == 'JetBrains-Research/tensorflow-federated'
&& github.ref == 'refs/heads/arm-build'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
Expand Down Expand Up @@ -98,7 +98,8 @@ jobs:
name: Build Package
needs: [publish-release]
runs-on: ubuntu-20.04
timeout-minutes: 60
timeout-minutes: 360
environment: release
steps:

- name: Checkout repository
Expand Down Expand Up @@ -136,7 +137,7 @@ jobs:
bazelisk run //tools/python_package:build_python_package \
--build_tag_filters="-nokokoro,-nopresubmit,-requires-gpu-nvidia" \
--google_credentials="${{ steps.auth.outputs.credentials_file_path }}" \
--remote_cache="https://storage.googleapis.com/tensorflow-federated-bazel-cache/${{ github.job }}" \
--remote_cache="https://storage.googleapis.com/${{ vars.BAZEL_CACHE_BUCKET }}/${{ github.job }}" \
-- \
--output_dir="${{ github.workspace }}/dist/"
Expand Down Expand Up @@ -194,6 +195,7 @@ jobs:
timeout-minutes: 5
permissions:
id-token: write # Required for trusted publishing.
environment: release
steps:

- name: Download Python package
Expand All @@ -204,3 +206,6 @@ jobs:

- name: Publish Python package
uses: pypa/[email protected]
with:
password: ${{ secrets.PYTHON_REPOSITORY_TOKEN }}
repository-url: ${{ vars.PYTHON_REPOSITORY_URL }}
2 changes: 1 addition & 1 deletion tensorflow_federated/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.
"""TensorFlow Federated version."""

__version__ = '0.88.0'
__version__ = '0.88.0a1'

0 comments on commit 03b2048

Please sign in to comment.