Skip to content

Commit

Permalink
[infra] Fix determination of ccache path on Windows (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Jan 3, 2024
1 parent a18287d commit ebe72cf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -459,17 +459,19 @@ jobs:
key: tket-dynamic-visual-studio-windows-2022-${{ steps.current_time.outputs.formattedTime }}
restore-keys: |
tket-dynamic-visual-studio-windows-2022
- name: get ccache version
id: ccache-ver
- name: get ccache path
id: ccache-path
shell: bash
run: |
ccache_ver=$(choco list -e ccache | grep "ccache" | grep -ioE '[0-9]+\.[0-9]+\.[0-9]+')
echo "Found ccache version ${ccache_ver}"
echo "ccache_ver=${ccache_ver}" >> $GITHUB_OUTPUT
ccache --shimgen-noop > ccache-info.txt || true
a=$(cat ccache-info.txt | grep executable)
# strip off the initial " path to executable: "
b=${a:22}
echo "ccache_path=${b}" >> $GITHUB_OUTPUT
- name: Build tket
if: needs.check_changes.outputs.tket_changed == 'true'
run: |
$env:TKET_VSGEN_CCACHE_EXE = 'C:\\ProgramData\\chocolatey\\lib\\ccache\\tools\\ccache-${{ steps.ccache-ver.outputs.ccache_ver }}-windows-x86_64\\ccache.exe'
$env:TKET_VSGEN_CCACHE_EXE = '${{ steps.ccache-path.outputs.ccache_path }}'
conan build tket --user tket --channel stable -o boost/*:header_only=True -o tklog/*:shared=True -o tket/*:shared=True
conan export-pkg tket --user tket --channel stable -o boost/*:header_only=True -o tklog/*:shared=True -o tket/*:shared=True -tf `"`"
- name: Install tket
Expand Down
2 changes: 1 addition & 1 deletion pytket/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def package(self):
cmake.install()

def requirements(self):
self.requires("tket/1.2.77@tket/stable")
self.requires("tket/1.2.78@tket/stable")
self.requires("tklog/0.3.3@tket/stable")
self.requires("tkrng/0.3.3@tket/stable")
self.requires("tkassert/0.3.4@tket/stable")
Expand Down
2 changes: 1 addition & 1 deletion tket/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class TketConan(ConanFile):
name = "tket"
version = "1.2.77"
version = "1.2.78"
package_type = "library"
license = "Apache 2"
homepage = "https://github.com/CQCL/tket"
Expand Down

0 comments on commit ebe72cf

Please sign in to comment.