Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chemix-lunacy committed Mar 13, 2024
1 parent 84d51f5 commit 4ba291b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 36 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/deploy-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,35 @@ jobs:
# name: wheels
# path: src/target/wheels

windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64] # x86
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.9
architecture: ${{ matrix.target }}
- uses: dtolnay/rust-toolchain@nightly
- name: Install winget
run: |
irm asheroto.com/winget | iex
winget-install
- name: Build wheels
run: |
winget install build-essential libffi-dev xz-utils powershell curl wget gnupg apt-transport-https 7-zip --disable-interactivity
cd src
./build.ps1
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: src/target/wheels
# windows:
# runs-on: windows-latest
# strategy:
# matrix:
# target: [x64] # x86
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v4
# with:
# python-version: 3.9
# architecture: ${{ matrix.target }}
# - uses: dtolnay/rust-toolchain@nightly
# - name: Install winget
# run: |
# irm asheroto.com/winget | iex
# winget-install
# - name: Build wheels
# run: |
# winget install build-essential libffi-dev xz-utils powershell curl wget gnupg apt-transport-https 7-zip --disable-interactivity
# cd src
# ./build.ps1
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels
# path: src/target/wheels

linux:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64
strategy:
matrix:
target: [x86_64]
Expand Down Expand Up @@ -109,7 +108,7 @@ jobs:

publish:
runs-on: ubuntu-latest
needs: [ windows, linux ] # , linux-cross
needs: [ linux ] # , linux-cross windows,
permissions:
id-token: write
steps:
Expand Down
16 changes: 8 additions & 8 deletions src/scripts/psakefile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ task build-rasqal -depends init {
Get-Wheels rasqal | Remove-Item -Verbose
Invoke-LoggedCommand { pip --verbose wheel --no-deps --wheel-dir $Wheels $Rasqal }

if ($env:RSQL_MANYLINUX -eq $true) {
$unauditedWheels = Get-Wheels rasqal
Invoke-LoggedCommand -workingDirectory $Root {
pip install auditwheel
auditwheel repair --wheel-dir $Wheels $unauditedWheels
}
$unauditedWheels | Remove-Item
}
# if ($env:RSQL_MANYLINUX -eq $true) {
# $unauditedWheels = Get-Wheels rasqal
# Invoke-LoggedCommand -workingDirectory $Root {
# pip install auditwheel
# auditwheel repair --wheel-dir $Wheels $unauditedWheels
# }
# $unauditedWheels | Remove-Item
# }

# Force reinstall the package if it exists, but not its dependencies.
$packages = Get-Wheels rasqal
Expand Down

0 comments on commit 4ba291b

Please sign in to comment.