diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 4086fecdf..5889ecb26 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -10,7 +10,7 @@ jobs: name: Run Checks runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -21,7 +21,12 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} version: '3.20.1' - name: Install libquil dependencies - run: sudo apt install -y libffi\* libblas\* liblapack\* + run: | + sudo apt update + sudo apt install -y libffi\* libblas\* liblapack\* curl + curl -O https://mirrors.edge.kernel.org/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb + sudo apt install -y ./libffi7_3.3-4_amd64.deb + sudo apt install -y libffi-dev - name: Install libquil run: | curl https://raw.githubusercontent.com/rigetti/libquil/main/install.sh | bash -s 0.3.0 diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index be616f797..86596ed91 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -20,12 +20,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.PAT }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.PAT }} - name: Install Knope - uses: knope-dev/action@v1 + uses: knope-dev/action@v2.0.0 with: version: 0.7.0 # Test before updating, breaking changes likely: https://github.com/knope-dev/action#install-latest-version - run: | diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 5b0e3e00f..d08426f18 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -16,9 +16,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.11' + cache: pip - uses: Swatinem/rust-cache@v2 - name: Install cargo-make uses: actions-rs/cargo@v1 @@ -39,7 +40,7 @@ jobs: preview-branch: qcs-sdk-python-docs - name: Deploy docs if: ${{ github.event_name == 'push' }} - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: crates/python/build/docs diff --git a/.github/workflows/release-dry-run.yml b/.github/workflows/release-dry-run.yml index c2114a32b..37cda663d 100644 --- a/.github/workflows/release-dry-run.yml +++ b/.github/workflows/release-dry-run.yml @@ -9,14 +9,14 @@ jobs: release-dry-run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.PAT }} - name: Install Knope - uses: knope-dev/action@v1 + uses: knope-dev/action@v2.0.0 with: - version: 0.6.1 # Test before updating, breaking changes likely: https://github.com/knope-dev/action#install-latest-version + version: 0.7.0 # Test before updating, breaking changes likely: https://github.com/knope-dev/action#install-latest-version - name: Display Pending Release run: knope release --dry-run env: diff --git a/.github/workflows/release-library.yml b/.github/workflows/release-library.yml index cf3f8faa3..f578749b6 100644 --- a/.github/workflows/release-library.yml +++ b/.github/workflows/release-library.yml @@ -19,7 +19,7 @@ jobs: env: CXXFLAGS: "-std=c++11" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.PAT }} diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index a7423be82..9ba0123d5 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -24,7 +24,7 @@ jobs: - run: echo "Publishing wheels" macos: - runs-on: macos-12 + runs-on: macos-latest needs: [is-python-release, should-publish-wheels] env: CXXFLAGS: "-std=c++11 -stdlib=libc++" @@ -32,7 +32,7 @@ jobs: matrix: package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc uses: arduino/setup-protoc@v1 with: @@ -52,7 +52,7 @@ jobs: matrix: target: [x86_64, aarch64] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc uses: arduino/setup-protoc@v1 with: @@ -72,7 +72,7 @@ jobs: matrix: target: [x86_64, ppc64le] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc uses: arduino/setup-protoc@v1 with: @@ -94,7 +94,7 @@ jobs: run: | reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f git config --system core.longpaths true - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc uses: arduino/setup-protoc@v1 with: @@ -115,7 +115,7 @@ jobs: matrix: package-name: [qcs-sdk-python, qcs-sdk-python-grpc-web] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install protoc uses: arduino/setup-protoc@v1 with: diff --git a/crates/python/Makefile.toml b/crates/python/Makefile.toml index 4874a965f..09fb8c228 100644 --- a/crates/python/Makefile.toml +++ b/crates/python/Makefile.toml @@ -1,5 +1,5 @@ [env] -PYTHONPATH = { script = [ "python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'" ] } +PYTHONPATH = { script = [ "python -c 'from sysconfig import get_path; print(get_path(\"platlib\"))'" ] } RUST_BACKTRACE = 0 [tasks.check-venv]