chore(frontend/python): create nightly release workflow

This commit is contained in:
Umut
2023-03-27 15:51:01 +02:00
parent 5e2349839a
commit 0b9c2a0a3e
3 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
name: Concrete Python Release (Nightly)
on:
workflow_dispatch:
inputs:
instance_id:
description: 'Instance ID'
type: string
instance_image_id:
description: 'Instance AMI ID'
type: string
instance_type:
description: 'Instance product type'
type: string
runner_name:
description: 'Action runner name'
type: string
request_id:
description: 'Slab request ID'
type: string
env:
DOCKER_IMAGE_TEST: ghcr.io/zama-ai/concrete-compiler
GLIB_VER: 2_28
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
jobs:
release:
if: ${{ !cancelled() }}
runs-on: ${{ github.event.inputs.runner_name }}
steps:
- name: Log instance configuration
run: |
echo "IDs: ${{ inputs.instance_id }}"
echo "AMI: ${{ inputs.instance_image_id }}"
echo "Type: ${{ inputs.instance_type }}"
echo "Request ID: ${{ inputs.request_id }}"
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Print Python version
run: python --version

View File

@@ -6,11 +6,14 @@ on:
push:
branches:
- 'main'
schedule:
- cron: "0 0 * * *"
jobs:
# This jobs outputs for each modules of our mono-repo if it changed,
# in order to launch jobs only for the changed modules
file-change:
if: ${{ github.event_name != 'schedule' }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
@@ -232,3 +235,12 @@ jobs:
secrets: inherit
with:
command: concrete-python-tests-linux
#################################################
# Release jobs #################################
nightly-release:
if: ${{ github.event_name == 'schedule' }}
uses: ./.github/workflows/start_slab.yml
secrets: inherit
with:
command: concrete-python-release-nightly