-
Notifications
You must be signed in to change notification settings - Fork 89
56 lines (46 loc) · 1.64 KB
/
build_all_adapters.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# YAML schema for GitHub Actions:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
#
# Helpful YAML parser to clarify YAML syntax:
# https://yaml-online-parser.appspot.com/
#
name: PyPI Build Release All Backend Adapters
on:
workflow_dispatch:
inputs:
package-version:
description: 'Package Version'
required: true
default: '0.0.0'
type: string
jobs:
build_release:
strategy:
matrix:
runner: [Linux_runner_8_core, macos-latest, macos-13]
python-version: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install wheel numpy twine
- name: Build Package
run: |
cd ./src/builtin-adapter
./python/pip_package/build_pip_package.sh ${{ github.event.inputs.package-version }}
- name: Verify the Distribution
run: twine check ./src/builtin-adapter/gen/adapter_pip/dist/*
- name: Check Directory Output
run: ls -l ./src/builtin-adapter/gen/adapter_pip/dist/*.whl
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: ./src/builtin-adapter/gen/adapter_pip/dist/*.whl
prerelease: true
tag_name: adapter-v${{ github.event.inputs.package-version }}