diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 2591d43ab..5312a6cf5 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -5,7 +5,7 @@ # provided by a third-party and are governed by separate terms of service, # privacy policy, and support documentation. -name: Build Python Package and Publish +name: release python on: workflow_dispatch: @@ -38,7 +38,6 @@ jobs: uses: pypa/cibuildwheel@v2.13.1 env: CIBW_BEFORE_ALL: sh -c "./python/install-hyperonc.sh -u https://github.com/${{github.repository}}.git -r ${{env.COMMIT_HEAD}}" - CIBW_SKIP: "*musllinux*" with: package-dir: ./python diff --git a/python/install-hyperonc.sh b/python/install-hyperonc.sh index e479b2531..6a3eedf28 100755 --- a/python/install-hyperonc.sh +++ b/python/install-hyperonc.sh @@ -34,10 +34,12 @@ python3 -m pip install conan==1.60.2 pip==23.1.2 PATH="${PATH}:${HOME}/.local/bin" conan profile new --detect default -cd ${HOME} -git clone $HYPERONC_URL hyperonc +mkdir -p ${HOME}/hyperonc cd ${HOME}/hyperonc -git reset --hard $HYPERONC_REV +git init +git remote add origin $HYPERONC_URL +git fetch --depth=1 origin $HYPERONC_REV +git reset --hard FETCH_HEAD mkdir -p ${HOME}/hyperonc/c/build cd ${HOME}/hyperonc/c/build