Skip to content

Commit

Permalink
Add in logic in a git command
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Nov 15, 2024
1 parent 896f8f5 commit ba3c9e8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release_wheel_creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Create pyproject.toml
run: |
if [[ ${{ matrix.os }} == *"ubuntu"* ]]; then
echo -e '[build-system]\n\nrequires = [ "setuptools", "wheel", "cython", "pybind11" ]' > $GITHUB_WORKSPACE/pyproject.toml
elif [[ ${{ matrix.os }} == *"macos"* ]]; then
echo '[build-system]\n\nrequires = [ "setuptools", "wheel", "cython", "pybind11" ]' > $GITHUB_WORKSPACE/pyproject.toml
else
echo '[build-system]\n\nrequires = [ "setuptools", "wheel", "cython", "pybind11" ]' > $GITHUB_WORKSPACE\pyproject.toml
fi
ls -la $GITHUB_WORKSPACE
- name: Build wheels
uses: pypa/[email protected]
with:
Expand All @@ -67,8 +77,6 @@ jobs:
CIBW_BUILD: ${{ matrix.wheel-version }}
CIBW_SKIP: "*-musllinux*"
CIBW_BUILD_VERBOSITY: 2
CIBW_BEFORE_ALL_LINUX: echo -e '[build-system]\n\nrequires = [ "setuptools", "wheel", "cython", "pybind11" ]' > $GITHUB_WORKSPACE/pyproject.toml && ls $GITHUB_WORKSPACE
CIBW_BEFORE_ALL_MACOS: echo '[build-system]\n\nrequires = [ "setuptools", "wheel", "cython", "pybind11" ]' > $GITHUB_WORKSPACE/pyproject.toml && cat $GITHUB_WORKSPACE/pyproject.toml
CIBW_ENVIRONMENT: PYOMO_SETUP_ARGS="${{ matrix.GLOBAL_OPTIONS }}"
- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -114,6 +122,7 @@ jobs:
- name: Create pyproject.toml
run: |
echo -e '[build-system]\n\nrequires = [ "setuptools", "wheel", "cython", "pybind11" ]' > $GITHUB_WORKSPACE/pyproject.toml
ls -la $GITHUB_WORKSPACE
- name: Build wheels
uses: pypa/[email protected]
with:
Expand Down

0 comments on commit ba3c9e8

Please sign in to comment.