-
Notifications
You must be signed in to change notification settings - Fork 0
110 lines (95 loc) · 3.28 KB
/
publish.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Publish Packages
on: workflow_dispatch
env:
om_ver_file: om_version
origen_ver_file: origen_version
jobs:
build_manylinux:
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJSON(vars.PYTHON_VERSIONS_FOR_RELEASE) }}
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Run Docker container
uses: addnab/docker-run-action@v3
with:
image: quay.io/pypa/manylinux2014_x86_64
options: |
--user root
--volume ${{ github.workspace }}:/tmp/o2
--env GIT_DIR=/tmp/o2
--env OM_VER_FILE=${{ env.om_ver_file }}
--env ORIGEN_VER_FILE=${{ env.origen_ver_file }}
--env RUST_VERSION=${{ fromJSON(vars.RUST_VERSION) }}
--env PYTHON_VERSION=${{ matrix.python-version }}
run: |
source /tmp/o2/.github/workflows/setup_manylinux.sh
- name: Display OM Wheelhouse Directory
working-directory: python/origen_metal
run: |
ls wheelhouse
echo "OM_WHEEL=$( ls wheelhouse | head -1 )" >> $GITHUB_ENV
- name: Display OM Wheel Name
run: |
echo ${{ env.OM_WHEEL }}
- name: Upload Origen Metal Python Package Artifact
uses: actions/upload-artifact@v4
with:
name: om_wheels
path: python/origen_metal/wheelhouse/${{ env.OM_WHEEL }}
- name: Upload OM Python Package Version
uses: actions/upload-artifact@v4
with:
name: ${{ env.om_ver_file }}
path: python/origen_metal/${{ env.om_ver_file }}
- name: Display Origen Wheelhouse Directory
working-directory: python/origen
run: |
ls wheelhouse
echo "ORIGEN_WHEEL=$( ls wheelhouse | head -1 )" >> $GITHUB_ENV
- name: Display Origen Wheelhouse Directory
run: |
ls -al python/origen/origen/__bin__/bin
ls -al rust/pyapi/target/release
echo ${{ env.ORIGEN_WHEEL }}
- name: Upload Origen Python Package Artifact
uses: actions/upload-artifact@v4
with:
name: origen_wheels
path: python/origen/wheelhouse/${{ env.ORIGEN_WHEEL }}
- name: Upload Origen Python Package Version
uses: actions/upload-artifact@v4
with:
name: ${{ env.origen_ver_file }}
path: python/origen/${{ env.origen_ver_file }}
- name: Upload CLI as a standalone entity
uses: actions/upload-artifact@v4
with:
name: cli
path: python/origen/origen/__bin__/bin/origen
show_wheels:
needs: build_manylinux
runs-on: ubuntu-latest
steps:
- name: Retrieve OM Wheels
uses: actions/download-artifact@v4
with:
name: om_wheels
path: om_wheels
- name: List OM Wheels
run: ls -al ./om_wheels
- name: Retrieve Origen Wheels
uses: actions/download-artifact@v4
with:
name: origen_wheels
path: origen_wheels
- name: List Origen Wheels
run: ls -al ./origen_wheels
- name: Upload CLI as a standalone entity
uses: actions/upload-artifact@v4
with:
name: cli
path: python\origen\origen\__bin__\bin\origen.exe