forked from google-parfait/tensorflow-federated
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action linux/aarch64 build
* added release environment * parameterised cache bucket name * parameterised python repository
- Loading branch information
1 parent
4d163a1
commit 1f5997a
Showing
2 changed files
with
12 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ on: # yamllint disable-line rule:truthy | |
# postsubmit | ||
push: | ||
branches: | ||
- main | ||
- arm-build | ||
paths: | ||
- 'tensorflow_federated/version.py' | ||
|
||
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -136,7 +137,8 @@ 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 }}" \ | ||
--config=linux_x86_64 \ | ||
-- \ | ||
--output_dir="${{ github.workspace }}/dist/" | ||
|
@@ -194,6 +196,7 @@ jobs: | |
timeout-minutes: 5 | ||
permissions: | ||
id-token: write # Required for trusted publishing. | ||
environment: release | ||
steps: | ||
|
||
- name: Download Python package | ||
|
@@ -204,3 +207,6 @@ jobs: | |
|
||
- name: Publish Python package | ||
uses: pypa/[email protected] | ||
with: | ||
password: ${{ secrets.PYTHON_REPOSITORY_TOKEN }} | ||
repository-url: ${{ vars.PYTHON_REPOSITORY_URL }} |
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