Skip to content

Commit

Permalink
DNM: hack up for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bgilbert committed Jul 20, 2023
1 parent be66cf9 commit 1675b16
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/retile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ env:
LD_LIBRARY_PATH: "${{ github.workspace }}/install/lib"
PYTHONPATH: "${{ github.workspace }}/install/python"
PYTHONUNBUFFERED: 1
RUNTIME_DEPS: "python3 python3-boto3 python3-pillow python3-requests \
zlib libpng libjpeg-turbo libtiff openjpeg2 gdk-pixbuf2 \
RUNTIME_DEPS: "python3 python3-boto3 python3-pillow python3-requests \
zlib libpng libjpeg-turbo libtiff openjpeg2 gdk-pixbuf2 \
gdk-pixbuf2-modules libxml2 sqlite cairo glib2"
Expand All @@ -35,7 +37,8 @@ jobs:
libxml2-devel \
sqlite-devel \
cairo-devel \
glib2-devel
glib2-devel \
git-core
- name: Download releases
run: |
set -euxo pipefail
Expand All @@ -55,16 +58,18 @@ jobs:
# Unpack
tar xf "$1-${version}.tar.xz"
}
get_release openslide
get_release openslide-python
git clone https://github.com/openslide/openslide
git clone https://github.com/bgilbert/openslide-python -b icc
#get_release openslide
#get_release openslide-python
- name: Build OpenSlide
working-directory: openslide-${{ env.OPENSLIDE_VERSION }}
working-directory: openslide
run: |
meson setup builddir --prefix=${GITHUB_WORKSPACE}/install
meson compile -C builddir
meson install -C builddir
- name: Build OpenSlide Python
working-directory: openslide-python-${{ env.OPENSLIDE_PYTHON_VERSION }}
working-directory: openslide-python
run: |
pip install -t ${GITHUB_WORKSPACE}/install/python .
- name: Upload build
Expand Down
2 changes: 1 addition & 1 deletion demo/_synctiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import zlib

STAMP_VERSION = 'size-510' # change to retile without OpenSlide version bump
S3_BUCKET = 'openslide-demo'
S3_BUCKET = 'bgilbert-demo'
S3_REGION = 'us-east-1'
BASE_URL = f'https://{S3_BUCKET}.s3.dualstack.{S3_REGION}.amazonaws.com/'
CORS_ORIGINS = ['*']
Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
}
},
'timeout': 60000,
'url': 'https://openslide-demo.s3.dualstack.us-east-1.amazonaws.com/status.json',
'url': 'https://bgilbert-demo.s3.dualstack.us-east-1.amazonaws.com/status.json',
});
}
$(window).on('visibilitychange', function() {
Expand Down Expand Up @@ -287,7 +287,7 @@
$('#images').removeClass('loading').
html("<div class='error'>Couldn't load slides</div>");
},
'url': 'https://openslide-demo.s3.dualstack.us-east-1.amazonaws.com/info.json'
'url': 'https://bgilbert-demo.s3.dualstack.us-east-1.amazonaws.com/info.json'
});

// CSS doesn't provide a good way to specify a div of height
Expand Down

0 comments on commit 1675b16

Please sign in to comment.