Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/wheel-in-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Add wheels to release

on:
release:
types:
- published

jobs:
dist_linux:
runs-on: ubuntu-latest
container:
image: gcr.io/tfx-oss-public/tfx_base:py37-20200729
steps:
- uses: actions/checkout@v2

- name: Build wheels
run: |
bash -x package_build/initialize.sh; \
CFLAGS=$(/usr/bin/python-config --cflags) \
python package_build/model-card-toolkit/setup.py bdist_wheel; \
MCT_WHEEL=$(find dist -name "model_card_toolkit-*.whl"); \

- name: Upload
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/*.whl
8 changes: 8 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ http_archive(
],
)

http_archive(
name = "zlib",
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
strip_prefix = "zlib-1.2.11",
urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"],
)

load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")

rules_proto_dependencies()
Expand Down
Loading