Skip to content

Commit

Permalink
CI/CD update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhjp01 committed Jul 13, 2024
1 parent 7b50d7d commit e683dba
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,15 @@ jobs:
name: Build wheels
needs:
- test
runs-on: ${{ matrix.platform.image }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform:
- image: 'windows-latest'
name: 'windows'
- image: 'ubuntu-latest'
name: 'linux'
platform: [ 'windows-latest', 'ubuntu-latest' ]
python-version: [ 'cp38', 'cp39', 'cp310', 'cp311', 'cp312' ]
timeout-minutes: 35
env:
CONAN_REVISIONS_ENABLED: 1
TARGET_ID: libcosimpy-${{ github.ref_name }}-${{ matrix.platform.name }}-${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
Expand All @@ -55,22 +50,22 @@ jobs:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
name: Upload artifact (wheels)
with:
name: ${{ env.TARGET_ID }}-wheel
name: libcosimpy-${{ github.ref_name }}-${{ runner.os }}-${{ matrix.python-version }}-wheel
path: ./wheelhouse/*.whl

build_source:
name: Build source
needs:
- test
runs-on: 'ubuntu-latest'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- name: Install build
run: pip install build
- name: Build source
run: python -m build --sdist
- uses: actions/upload-artifact@v4
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
name: Upload artifact (source)
with:
name: libcosimpy-${{ github.ref_name }}-source
Expand Down

0 comments on commit e683dba

Please sign in to comment.