Skip to content

Commit 60dd8fb

Browse files
committed
DNM: Use the includes from mithro/actions.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
1 parent ce32b75 commit 60dd8fb

File tree

3 files changed

+142
-145
lines changed

3 files changed

+142
-145
lines changed

.github/workflows-src/publish-to-pypi.yml

Lines changed: 22 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -13,103 +13,55 @@ on:
1313
pull_request:
1414
workflow_dispatch:
1515

16+
1617
jobs:
1718

1819
Source:
1920
name: Source
2021
runs-on: ubuntu-20.04
2122

2223
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
3425

35-
- includes: /upload-to-pypi
26+
- includes: mithro/actions/includes/python/publish-to-pypi-src@main
3627
with:
37-
root_repo: SymbiFlow/fasm
38-
type: source
28+
root_user: SymbiFlow
3929

40-
Linux:
30+
Wheels-Linux:
4131
strategy:
4232
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' ]
4834
fail-fast: false
4935

5036
name: '${{ matrix.python-version }} • manylinux'
51-
runs-on: ubuntu-latest
37+
runs-on: ubuntu-20.04
5238

5339
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
8141

82-
- includes: /upload-to-pypi
42+
- includes: mithro/actions/includes/python/publish-to-pypi-wheels-bin-linux@main
8343
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
8650

87-
MacAndWindows:
51+
Wheels-Other:
8852
strategy:
8953
matrix:
9054
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' ]
9256
fail-fast: false
9357

94-
name: ${{ matrix.python-version }} • ${{ matrix.os }}
58+
name: '${{ matrix.python-version }} • ${{ matrix.os }}'
9559
runs-on: ${{ matrix.os }}
9660

9761
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
10763

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
11365
with:
114-
root_repo: SymbiFlow/fasm
115-
type: wheels
66+
python-version: ${{ matrix.python-version }}
67+
root_user: SymbiFlow

.github/workflows/manylinux-install-cmake.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ yum remove cmake -y
99
# Add in curl
1010
yum install wget -y
1111

12-
yum install java-1.8.0-openjdk uuid uuid-devel libuuid libuuid-devel -y
13-
1412
# Download new cmake
1513
wget https://github.com/Kitware/CMake/releases/download/v3.19.4/cmake-3.19.4-Linux-x86_64.sh -O /tmp/cmake.sh
1614
chmod a+x /tmp/cmake.sh

0 commit comments

Comments
 (0)