Skip to content

Commit

Permalink
Merge pull request #48 from oqc-community/release/v0.1.3
Browse files Browse the repository at this point in the history
Release/v0.1.3
  • Loading branch information
chemix-lunacy authored Apr 3, 2024
2 parents 1bc0d53 + 61d8d3f commit 5da5fad
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 33 deletions.
8 changes: 5 additions & 3 deletions .github/actions/install-llvm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ runs:
- name: Linux - Install build dependencies, ninja
run: sudo apt-get install -y ninja-build
shell: pwsh
if: ${{ (inputs.os == 'ubuntu-20.04') && (steps.cache-llvm.outputs.cache-hit != 'true') }}
if: ${{ (inputs.os == 'ubuntu-20.04' || inputs.os == 'ubuntu-latest') && (steps.cache-llvm.outputs.cache-hit != 'true') }}
- name: Windows - Install build dependencies, ninja
run: |
choco install --accept-license -y ninja
choco uninstall -y llvm
shell: pwsh
if: ${{ (inputs.os == 'windows-2019') && (steps.cache-llvm.outputs.cache-hit != 'true') }}
if: ${{ (inputs.os == 'windows-2019' || inputs.os == 'windows-latest') && (steps.cache-llvm.outputs.cache-hit != 'true') }}
- name: MacOS - Install build dependencies, ccache, ninja
run: brew install ccache ninja
shell: pwsh
if: ${{ matrix.config.os == 'macos-14' }}
if: ${{ inputs.os == 'macos-14' || inputs.os == 'macos-latest' }}

- name: Configure long paths
run: git config --global core.longpaths true
Expand All @@ -52,10 +52,12 @@ runs:
Write-Output "LLVM_SYS_${{ inputs.version }}0_PREFIX=${{ inputs.directory }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
Write-Output "RSQL_LLVM_FEATURE_VERSION=llvm${{ inputs.version }}-0" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh
if: ${{ steps.cache-llvm.outputs.cache-hit != 'true' }}

- name: Working dir
run: pwd
shell: pwsh
if: ${{ steps.cache-llvm.outputs.cache-hit != 'true' }}

- name: Install LLVM
run: |
Expand Down
39 changes: 10 additions & 29 deletions .github/workflows/deploy-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,11 @@ on:

jobs:
deploy:
runs-on: ${{ matrix.config.os }}
env: ${{ matrix.config.env }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
config:
- {
os: "ubuntu-20.04",
arch: "amd64",
target: "pypi-build",
env: { },
}
- {
os: "windows-2019",
arch: "amd64",
target: "pypi-build",
env: { },
}
- {
os: "macos-14",
arch: "arm64",
target: "pypi-build",
env: { },
}
os: ["ubuntu-20.04", "windows-2019", "windows-latest", "macos-14", "macos-latest"]
steps:
- uses: actions/checkout@v4
- name: Setup rust toolchain
Expand All @@ -41,31 +22,31 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: 3.9
if: ${{ matrix.config.os != 'macos-14' }}
if: ${{ matrix.os != 'macos-14' && matrix.os != 'macos-latest' }}
- name: Install LLVM
uses: ./.github/actions/install-llvm
with:
version: "14"
os: ${{ matrix.config.os }}
os: ${{ matrix.os }}
directory: ${{ github.workspace }}/target/llvm
target: ${{ matrix.config.target }}
- name: "Build ${{ matrix.config.target }}"
target: "pypi-build"
- name: "Run build script"
run: |
pwd
./build.ps1 -t ${{ matrix.config.target }}
./build.ps1 -t "pypi-build"
shell: pwsh
- name: Artifacts - manylinux
uses: actions/upload-artifact@v4
with:
name: rasqal-manylinux-artifacts
path: src/target/wheels/*manylinux_2_*.whl
if: ${{ matrix.config.os == 'ubuntu-20.04' }}
if: ${{ matrix.os == 'ubuntu-20.04' }}
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: rasqal-${{ matrix.config.os }}-artifacts
name: rasqal-${{ matrix.os }}-artifacts
path: src/target/wheels/*
if: ${{ matrix.config.os != 'ubuntu-20.04' }}
if: ${{ matrix.os != 'ubuntu-20.04' }}

publish:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/rasqal/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "rasqal"
version = "0.1.2"
version = "0.1.3"
requires-python = ">=3.9"
description = "A dynamically executed quantum-classical hybrid optimizing runtime."
license = { file = "LICENSE" }
Expand Down

0 comments on commit 5da5fad

Please sign in to comment.