Skip to content

Commit

Permalink
Github actions: Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhjp01 committed Jul 18, 2023
1 parent a7581bc commit bf78223
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache dependencies
uses: actions/cache@v2
env:
Expand Down Expand Up @@ -68,9 +65,6 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache dependencies
uses: actions/cache@v2
env:
Expand Down Expand Up @@ -117,9 +111,6 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache dependencies
uses: actions/cache@v2
env:
Expand Down Expand Up @@ -151,3 +142,23 @@ jobs:

- working-directory: build/
run: ctest -C ${{ matrix.build_type }} --output-on-failure

wheels:
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
needs: [mac-os, linux, windows]
strategy:
fail-fast: false
matrix:
platform: [ 'windows-latest', 'ubuntu-latest' ]
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: pip install build twine
- name: Run build
run: python -m build

0 comments on commit bf78223

Please sign in to comment.