feat(ocb): upgrade to odoo 18 and drop cibuildwheel
This commit is contained in:
parent
2180e35cce
commit
fd300caacc
1 changed files with 18 additions and 18 deletions
|
|
@ -10,7 +10,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REPOSITORY_URL: https://cmwedding-bot:${{ secrets.FORGEJO_TOKEN }}@git.weddingfactory.eu/api/packages/cmwedding/pypi
|
REPOSITORY_URL: https://cmwedding-bot:${{ secrets.FORGEJO_TOKEN }}@git.weddingfactory.eu/api/packages/cmwedding/pypi
|
||||||
ODOO_VERSION: "17.0"
|
ODOO_VERSION: "18.0"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-version-exists:
|
check-version-exists:
|
||||||
|
|
@ -29,16 +29,12 @@ jobs:
|
||||||
unstable-branch: ${{ env.ODOO_VERSION }}
|
unstable-branch: ${{ env.ODOO_VERSION }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build wheels on ${{ matrix.os }}
|
name: Build wheels
|
||||||
|
runs-on: self-hosted
|
||||||
|
|
||||||
needs: check-version-exists
|
needs: check-version-exists
|
||||||
if: needs.check-version-exists.outputs.version != ''
|
if: needs.check-version-exists.outputs.version != ''
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: git clone --depth=1 https://github.com/OCA/OCB --branch ${{ env.ODOO_VERSION }} .
|
- run: git clone --depth=1 https://github.com/OCA/OCB --branch ${{ env.ODOO_VERSION }} .
|
||||||
|
|
||||||
|
|
@ -48,19 +44,23 @@ jobs:
|
||||||
wget "https://git.weddingfactory.eu/cmwedding/wheels/raw/branch/main/OCB/pyproject.toml"
|
wget "https://git.weddingfactory.eu/cmwedding/wheels/raw/branch/main/OCB/pyproject.toml"
|
||||||
sed -i 's/%s/${{ env.ODOO_VERSION }}/' pyproject.toml
|
sed -i 's/%s/${{ env.ODOO_VERSION }}/' pyproject.toml
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Setup dependencies
|
||||||
uses: https://github.com/pypa/cibuildwheel@v2.23.3
|
run: |
|
||||||
env:
|
python3 -m venv .venv
|
||||||
CIBW_BEFORE_BUILD_LINUX: "pip install --index-url https://git.weddingfactory.eu/api/packages/cmwedding/pypi/simple/ psycopg2 pycairo"
|
source .venv/bin/activate
|
||||||
CIBW_BUILD: "cp31{0..1}-manylinux_{x86_64,aarch64}"
|
|
||||||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
|
pip3 install build wheel setuptools twine
|
||||||
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
|
pip3 install --index-url https://git.weddingfactory.eu/api/packages/cmwedding/pypi/simple/ psycopg2 pycairo
|
||||||
|
|
||||||
|
- name: Build pure Python wheel
|
||||||
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
|
python3 -m build --wheel
|
||||||
|
|
||||||
- name: Publish package distributions to Forgejo
|
- name: Publish package distributions to Forgejo
|
||||||
run: |
|
run: |
|
||||||
pip3 install twine
|
source .venv/bin/activate
|
||||||
python3 -m twine upload ./wheelhouse/*
|
python3 -m twine upload ./dist/*
|
||||||
env:
|
env:
|
||||||
TWINE_REPOSITORY_URL: ${{ env.REPOSITORY_URL }}
|
TWINE_REPOSITORY_URL: ${{ env.REPOSITORY_URL }}
|
||||||
TWINE_NON_INTERACTIVE: 1
|
TWINE_NON_INTERACTIVE: 1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue