Skip to content

Commit

Permalink
Merge pull request #169 from GrammaticalFramework/dependabot/github_a…
Browse files Browse the repository at this point in the history
…ctions/dot-github/workflows/actions/download-artifact-4.1.7

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows
  • Loading branch information
inariksit authored Nov 1, 2024
2 parents 2a654c0 + 33b0bab commit 934afc9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v1

- uses: actions/setup-python@v1
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.x'
Expand All @@ -31,6 +31,7 @@ jobs:
if: startsWith(matrix.os, 'macos')
run: |
brew install automake
brew install libtool
- name: Build wheels on Linux
if: startsWith(matrix.os, 'macos') != true
Expand All @@ -42,12 +43,13 @@ jobs:
- name: Build wheels on OSX
if: startsWith(matrix.os, 'macos')
env:
CIBW_BEFORE_BUILD: cd src/runtime/c && glibtoolize && autoreconf -i && ./configure && make && make install
CIBW_BEFORE_BUILD: cd src/runtime/c && glibtoolize && autoreconf -i && ./configure && make && sudo make install
run: |
python -m cibuildwheel src/runtime/python --output-dir wheelhouse
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.os }}
path: ./wheelhouse

build_sdist:
Expand All @@ -64,8 +66,9 @@ jobs:
- name: Build sdist
run: cd src/runtime/python && python setup.py sdist

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheel-source
path: ./src/runtime/python/dist/*.tar.gz

upload_pypi:
Expand All @@ -78,16 +81,17 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install twine
run: pip install twine

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4.1.7
with:
name: artifact
pattern: wheel-*
merge-multiple: true
path: ./dist

- name: Publish
Expand Down

0 comments on commit 934afc9

Please sign in to comment.