mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-10 04:35:03 -05:00
The release workflow should, whenever a tag is pushed, create a draft release on github (that should be manually checked by one of us to make the actual release). The release should contain wheels for python 3.8, 3.9, and 3.10, as well as a tarball containing the zamacompiler and required libraries (and installation guide is provided). The draft release will also have an auto generated release note that can be modified later.
76 lines
2.3 KiB
YAML
76 lines
2.3 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
BuildAndReleaseWithArtifactsLinux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Login to Github Container Registry
|
|
run: echo "${{ secrets.GHCR_PASSWORD }}" | docker login -u ${{ secrets.GHCR_LOGIN }} --password-stdin ghcr.io
|
|
|
|
- name: Build
|
|
run: |
|
|
cd compiler
|
|
make package_py38
|
|
make package_py39
|
|
make package_py310
|
|
make release_tarballs
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
token: ${{ secrets.GH_TOKEN_RELEASE }}
|
|
draft: true
|
|
prerelease: true
|
|
generate_release_notes: true
|
|
files: |
|
|
wheels/concretefhe_compiler-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl
|
|
wheels/concretefhe_compiler-0.1.0-cp39-cp39-manylinux_2_24_x86_64.whl
|
|
wheels/concretefhe_compiler-0.1.0-cp310-cp310-manylinux_2_24_x86_64.whl
|
|
tarballs/zamacompiler.tar.gz
|
|
|
|
# TODO(MacOS)
|
|
# - clone concrete and build concrete-ffi
|
|
# - or download concrete-ffi lib for mac from an available source
|
|
|
|
# BuildAndPushArtifactsMacOS:
|
|
# runs-on: macos-10.15
|
|
# steps:
|
|
# - uses: actions/checkout@v2
|
|
# with:
|
|
# submodules: recursive
|
|
|
|
# - uses: actions/checkout@v1
|
|
# with:
|
|
# repository: zama-ai/concrete
|
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# - name: Build
|
|
# run: |
|
|
# cd compiler
|
|
# brew install ninja
|
|
# pip3 install numpy pybind11==2.6.2 PyYAML
|
|
# make zamacompiler python-bindings
|
|
# pip3 wheel -w ${{ github.workspace }}/wheels .
|
|
|
|
# - name: Upload Python3.9 Package
|
|
# uses: actions/upload-release-asset@v1
|
|
# env:
|
|
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
# with:
|
|
# upload_url: https://uploads.github.com/repos/zama-ai/homomorphizer/releases/53389478/assets
|
|
# asset_path: ${{ github.workspace }}/wheels/concretefhe_compiler-0.1.0-cp39-cp39-macos_10_15_x86_64.whl
|
|
# asset_name: concretefhe_compiler-0.1.0-cp39-cp39-macos_10_15_x86_64.whl
|
|
# asset_content_type: application/zip
|
|
|