mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-28 05:08:49 +01:00
Add card browser with similar cards and performance optimizations
This commit is contained in:
parent
a8dc1835eb
commit
c2960c808e
25 changed files with 4841 additions and 1392 deletions
30
.github/workflows/dockerhub-publish.yml
vendored
30
.github/workflows/dockerhub-publish.yml
vendored
|
|
@ -7,9 +7,15 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-cache:
|
||||
name: Build similarity cache
|
||||
uses: ./.github/workflows/build-similarity-cache.yml
|
||||
secrets: inherit
|
||||
|
||||
prepare:
|
||||
name: Prepare metadata
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-cache
|
||||
permissions:
|
||||
contents: read
|
||||
outputs:
|
||||
|
|
@ -63,6 +69,18 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v5.0.0
|
||||
|
||||
- name: Download similarity cache from branch
|
||||
run: |
|
||||
# Download cache files from similarity-cache-data branch
|
||||
mkdir -p card_files
|
||||
wget -q https://raw.githubusercontent.com/${{ github.repository }}/similarity-cache-data/card_files/similarity_cache.parquet -O card_files/similarity_cache.parquet || echo "Cache not found, will build without it"
|
||||
wget -q https://raw.githubusercontent.com/${{ github.repository }}/similarity-cache-data/card_files/similarity_cache_metadata.json -O card_files/similarity_cache_metadata.json || echo "Metadata not found"
|
||||
|
||||
if [ -f card_files/similarity_cache.parquet ]; then
|
||||
echo "✓ Downloaded similarity cache"
|
||||
ls -lh card_files/similarity_cache.parquet
|
||||
fi
|
||||
|
||||
- name: Compute amd64 tag
|
||||
id: arch_tag
|
||||
shell: bash
|
||||
|
|
@ -120,6 +138,18 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v5.0.0
|
||||
|
||||
- name: Download similarity cache from branch
|
||||
run: |
|
||||
# Download cache files from similarity-cache-data branch
|
||||
mkdir -p card_files
|
||||
wget -q https://raw.githubusercontent.com/${{ github.repository }}/similarity-cache-data/card_files/similarity_cache.parquet -O card_files/similarity_cache.parquet || echo "Cache not found, will build without it"
|
||||
wget -q https://raw.githubusercontent.com/${{ github.repository }}/similarity-cache-data/card_files/similarity_cache_metadata.json -O card_files/similarity_cache_metadata.json || echo "Metadata not found"
|
||||
|
||||
if [ -f card_files/similarity_cache.parquet ]; then
|
||||
echo "✓ Downloaded similarity cache"
|
||||
ls -lh card_files/similarity_cache.parquet
|
||||
fi
|
||||
|
||||
- name: Compute arm64 tag
|
||||
id: arch_tag
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue