|
13 | 13 | pull_request: |
14 | 14 | workflow_dispatch: |
15 | 15 |
|
| 16 | + |
16 | 17 | jobs: |
17 | 18 |
|
18 | 19 | Source: |
19 | 20 | name: Source |
20 | 21 | runs-on: ubuntu-20.04 |
21 | 22 |
|
22 | 23 | steps: |
23 | | - - includes: /system-setup |
24 | | - with: |
25 | | - packaging-tools: true |
26 | | - |
27 | | - - name: Install package |
28 | | - run: | |
29 | | - pip install -e . |
30 | | -
|
31 | | - - name: 🚧 Build distribution 📦 |
32 | | - run: | |
33 | | - python -m build --sdist . |
| 24 | + - includes: /checkout |
34 | 25 |
|
35 | | - - includes: /upload-to-pypi |
| 26 | + - includes: mithro/actions/includes/python/publish-to-pypi-src@main |
36 | 27 | with: |
37 | | - root_repo: SymbiFlow/fasm |
38 | | - type: source |
| 28 | + root_user: SymbiFlow |
39 | 29 |
|
40 | | - Linux: |
| 30 | + Wheels-Linux: |
41 | 31 | strategy: |
42 | 32 | matrix: |
43 | | - include: |
44 | | - - { python-version: '3.6', manylinux-python: 'cp36-cp36m' } |
45 | | - - { python-version: '3.7', manylinux-python: 'cp37-cp37m' } |
46 | | - - { python-version: '3.8', manylinux-python: 'cp38-cp38' } |
47 | | - - { python-version: '3.9', manylinux-python: 'cp39-cp39' } |
| 33 | + python-version: [ '3.6', '3.7', '3.8', '3.9' ] |
48 | 34 | fail-fast: false |
49 | 35 |
|
50 | 36 | name: '${{ matrix.python-version }} • manylinux' |
51 | | - runs-on: ubuntu-latest |
| 37 | + runs-on: ubuntu-20.04 |
52 | 38 |
|
53 | 39 | steps: |
54 | | - - includes: /system-setup |
55 | | - with: |
56 | | - python-version: ${{ matrix.python-version }} |
57 | | - system-dependencies: false |
58 | | - packaging-tools: true |
59 | | - |
60 | | - - name: 🚧 Build distribution 📦 |
61 | | - uses: RalfG/python-wheels-manylinux-build@v0.3.3-manylinux2010_x86_64 |
62 | | - with: |
63 | | - build-requirements: 'cython' |
64 | | - pre-build-command: 'bash .github/workflows/manylinux-install-cmake.sh' |
65 | | - python-versions: ${{ matrix.manylinux-python }} |
66 | | - #pip-wheel-args: '-w ./dist --no-deps --verbose' |
67 | | - |
68 | | - - name: List distribution 📦 |
69 | | - run: | |
70 | | - # Fix permissions |
71 | | - echo "::group::Fixing permission" |
72 | | - ls -l dist/* |
73 | | - echo $USER |
74 | | - whoami |
75 | | - sudo chown -R $USER dist |
76 | | - ls -l dist/* |
77 | | - echo "::endgroup::" |
78 | | - # Remove the non-manylinux versions |
79 | | - rm -v dist/*linux_x86_64*.whl |
80 | | - ls -l dist/* |
| 40 | + - includes: /checkout |
81 | 41 |
|
82 | | - - includes: /upload-to-pypi |
| 42 | + - includes: mithro/actions/includes/python/publish-to-pypi-wheels-bin-linux@main |
83 | 43 | with: |
84 | | - root_repo: SymbiFlow/fasm |
85 | | - type: wheels |
| 44 | + pre-build-command: bash .github/workflows/manylinux-install-cmake.sh |
| 45 | + build-requirements: cython |
| 46 | + system-packages: java-1.8.0-openjdk uuid uuid-devel libuuid libuuid-devel git |
| 47 | + python-version: ${{ matrix.python-version }} |
| 48 | + package-path: '' |
| 49 | + root_user: SymbiFlow |
86 | 50 |
|
87 | | - MacAndWindows: |
| 51 | + Wheels-Other: |
88 | 52 | strategy: |
89 | 53 | matrix: |
90 | 54 | os: [windows-latest, macos-latest] |
91 | | - python-version: [ '3.6', '3.7', '3.8', '3.9', 'pypy-3.6', 'pypy-3.7' ] |
| 55 | + python-version: [ '3.6', '3.7', '3.8', '3.9' ] |
92 | 56 | fail-fast: false |
93 | 57 |
|
94 | | - name: ${{ matrix.python-version }} • ${{ matrix.os }} |
| 58 | + name: '${{ matrix.python-version }} • ${{ matrix.os }}' |
95 | 59 | runs-on: ${{ matrix.os }} |
96 | 60 |
|
97 | 61 | steps: |
98 | | - - includes: /system-setup |
99 | | - with: |
100 | | - os: ${{ matrix.os }} |
101 | | - python-version: ${{ matrix.python-version }} |
102 | | - packaging-tools: true |
103 | | - |
104 | | - - name: Install package |
105 | | - run: | |
106 | | - pip install -e . |
| 62 | + - includes: /checkout |
107 | 63 |
|
108 | | - - name: 🚧 Build distribution 📦 |
109 | | - run: | |
110 | | - python setup.py bdist_wheel |
111 | | -
|
112 | | - - includes: /upload-to-pypi |
| 64 | + - includes: mithro/actions/includes/python/publish-to-pypi-wheels-bin-other@main |
113 | 65 | with: |
114 | | - root_repo: SymbiFlow/fasm |
115 | | - type: wheels |
| 66 | + python-version: ${{ matrix.python-version }} |
| 67 | + root_user: SymbiFlow |
0 commit comments