Skip to content

Commit

Permalink
Include new rust folders in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Jul 8, 2024
1 parent 9dce083 commit 6ca4636
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows.src/tests.inc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
id: rust-cache
with:
path: build/rust_extensions
key: edb-rust-v3-${{ hashFiles('.tmp/rust_cache_key.txt') }}
key: edb-rust-v4-${{ hashFiles('.tmp/rust_cache_key.txt') }}
restore-keys: |
edb-rust-v3-
edb-rust-v4-
- name: Handle cached Cython extensions
uses: actions/cache@v4
Expand Down Expand Up @@ -368,7 +368,7 @@
id: rust-cache
with:
path: build/rust_extensions
key: edb-rust-v3-${{ hashFiles('.tmp/rust_cache_key.txt') }}
key: edb-rust-v4-${{ hashFiles('.tmp/rust_cache_key.txt') }}

- name: Restore cached Cython extensions
uses: actions/cache@v4
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,12 @@ def run(self):
rust_hash = hash_dirs([
(pkg_dir / 'edgeql-parser', '.rs'),
(pkg_dir / 'graphql-rewrite', '.rs'),
(pkg_dir / 'server/conn_pool', '.rs'),
], extra_files=[
pkg_dir / 'edgeql-parser/Cargo.toml',
pkg_dir / 'edgeql-parser/edgeql-parser-python/Cargo.toml',
pkg_dir / 'graphql-rewrite/Cargo.toml',
pkg_dir / 'server/conn_pool/Cargo.toml',
])
print(binascii.hexlify(rust_hash).decode())

Expand Down

0 comments on commit 6ca4636

Please sign in to comment.