Skip to content

Commit

Permalink
Change database dist location
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-riggs committed Aug 21, 2024
1 parent d528f26 commit 3de092b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/update-orm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
if: ${{ steps.checkUpdate.outputs.needsUpdate == 'true' }}
uses: actions/download-artifact@v4
with:
name: ispyb-database.tar.gz
name: package-distributions
path: dist/

- name: Set up reference database schema
Expand All @@ -74,20 +74,20 @@ jobs:

mkdir schema
cd schema
tar xfz "$(System.ArtifactsDirectory)/package/ispyb-database.tar.gz"
patch -p1 < "$(Build.SourcesDirectory)/src/ispyb/sqlalchemy/sqlacodegen.patch"
tar xfz "dist/ispyb-database.tar.gz"
patch -p1 < "src/ispyb/sqlalchemy/sqlacodegen.patch"
ln ~/.my.cnf .my.cnf -s

printf 'Waiting for MySQL database to accept connections'
until mysql -e "SHOW DATABASES" >/dev/null; do printf '.'; sleep 0.5; done
until mariadb --defaults-file=.my.cnf -e "SHOW DATABASES" >/dev/null; do printf '.'; sleep 0.5; done
printf '\n'

echo "Installing reference database"
./build.sh

echo
echo "Installed tables:"
mysql -D ispyb_build -e "SHOW TABLES"
mariadb --defaults-file=.my.cnf -D ispyb_build -e "SHOW TABLES"
working-directory: dist

- name: Generate ORM
Expand Down

0 comments on commit 3de092b

Please sign in to comment.