Skip to content

Commit

Permalink
Artifact passing version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
d.rudenko committed Oct 14, 2024
1 parent e7a7496 commit 2890247
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,17 @@ jobs:
toolchain: stable
components: rustfmt

- name: Build wheels on macOS and Linux
if: runner.os != 'Windows'
- name: Build wheels
run: |
maturin build --release --skip-auditwheel --out dist
ls -la dist # List contents of dist to verify wheels are built
- name: Build wheels on Windows
if: runner.os == 'Windows'
run: |
# Install Visual Studio Build Tools for Rust on Windows
choco install visualstudio2019buildtools --version=16.11.7
if [[ "$RUNNER_OS" == "Windows" ]]; then
# Install Visual Studio Build Tools for Rust on Windows
choco install visualstudio2019buildtools --version=16.11.7
fi
maturin build --release --out dist
dir dist # List contents of dist to verify wheels are built
- name: Upload dist directory as artifact
if: runner.os == 'Windows'
uses: actions/upload-artifact@v2
with:
name: dist
path: dist # Upload dist directory as an artifact
ls -la dist # List contents of dist to verify wheels are built
- name: Upload dist directory as artifact
if: runner.os != 'Windows'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dist
path: dist # Upload dist directory as an artifact
Expand All @@ -74,7 +60,7 @@ jobs:
uses: actions/checkout@v2

- name: Download dist directory artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: dist # Download the dist artifact uploaded in the build job

Expand Down

0 comments on commit 2890247

Please sign in to comment.