-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DNM: Use the includes from mithro/actions.
Signed-off-by: Tim 'mithro' Ansell <[email protected]>
- Loading branch information
Showing
3 changed files
with
142 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,103 +13,55 @@ on: | |
pull_request: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
|
||
Source: | ||
name: Source | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- includes: /system-setup | ||
with: | ||
packaging-tools: true | ||
|
||
- name: Install package | ||
run: | | ||
pip install -e . | ||
- name: 🚧 Build distribution 📦 | ||
run: | | ||
python -m build --sdist . | ||
- includes: /checkout | ||
|
||
- includes: /upload-to-pypi | ||
- includes: mithro/actions/includes/python/publish-to-pypi-src@main | ||
with: | ||
root_repo: SymbiFlow/fasm | ||
type: source | ||
root_user: SymbiFlow | ||
|
||
Linux: | ||
Wheels-Linux: | ||
strategy: | ||
matrix: | ||
include: | ||
- { python-version: '3.6', manylinux-python: 'cp36-cp36m' } | ||
- { python-version: '3.7', manylinux-python: 'cp37-cp37m' } | ||
- { python-version: '3.8', manylinux-python: 'cp38-cp38' } | ||
- { python-version: '3.9', manylinux-python: 'cp39-cp39' } | ||
python-version: [ '3.6', '3.7', '3.8', '3.9' ] | ||
fail-fast: false | ||
|
||
name: '${{ matrix.python-version }} • manylinux' | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- includes: /system-setup | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
system-dependencies: false | ||
packaging-tools: true | ||
|
||
- name: 🚧 Build distribution 📦 | ||
uses: RalfG/[email protected]_x86_64 | ||
with: | ||
build-requirements: 'cython' | ||
pre-build-command: 'bash .github/workflows/manylinux-install-cmake.sh' | ||
python-versions: ${{ matrix.manylinux-python }} | ||
#pip-wheel-args: '-w ./dist --no-deps --verbose' | ||
|
||
- name: List distribution 📦 | ||
run: | | ||
# Fix permissions | ||
echo "::group::Fixing permission" | ||
ls -l dist/* | ||
echo $USER | ||
whoami | ||
sudo chown -R $USER dist | ||
ls -l dist/* | ||
echo "::endgroup::" | ||
# Remove the non-manylinux versions | ||
rm -v dist/*linux_x86_64*.whl | ||
ls -l dist/* | ||
- includes: /checkout | ||
|
||
- includes: /upload-to-pypi | ||
- includes: mithro/actions/includes/python/publish-to-pypi-wheels-bin-linux@main | ||
with: | ||
root_repo: SymbiFlow/fasm | ||
type: wheels | ||
pre-build-command: bash .github/workflows/manylinux-install-cmake.sh | ||
build-requirements: cython | ||
system-packages: java-1.8.0-openjdk uuid uuid-devel libuuid libuuid-devel git | ||
python-version: ${{ matrix.python-version }} | ||
package-path: '' | ||
root_user: SymbiFlow | ||
|
||
MacAndWindows: | ||
Wheels-Other: | ||
strategy: | ||
matrix: | ||
os: [windows-latest, macos-latest] | ||
python-version: [ '3.6', '3.7', '3.8', '3.9', 'pypy-3.6', 'pypy-3.7' ] | ||
python-version: [ '3.6', '3.7', '3.8', '3.9' ] | ||
fail-fast: false | ||
|
||
name: ${{ matrix.python-version }} • ${{ matrix.os }} | ||
name: '${{ matrix.python-version }} • ${{ matrix.os }}' | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- includes: /system-setup | ||
with: | ||
os: ${{ matrix.os }} | ||
python-version: ${{ matrix.python-version }} | ||
packaging-tools: true | ||
|
||
- name: Install package | ||
run: | | ||
pip install -e . | ||
- includes: /checkout | ||
|
||
- name: 🚧 Build distribution 📦 | ||
run: | | ||
python setup.py bdist_wheel | ||
- includes: /upload-to-pypi | ||
- includes: mithro/actions/includes/python/publish-to-pypi-wheels-bin-other@main | ||
with: | ||
root_repo: SymbiFlow/fasm | ||
type: wheels | ||
python-version: ${{ matrix.python-version }} | ||
root_user: SymbiFlow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.