Skip to content

Commit

Permalink
workflows install latest tom_testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jun 6, 2024
1 parent 07513aa commit 0a354fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/linux-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,15 @@ jobs:
DB_MYSQL_USERNAME: ${{ secrets.DB_MYSQL_USERNAME_SELF }}
TOM_EXAMPLE_ENV: ${{ vars.TOM_EXAMPLE_ENV }}

# The tom_testdata will be needed in vcpkg-linux-drivers.yml so we need to copy this executable,
# the reason for this is to always have the latest tom_testdata and to avoid manual rebuilds if
# any shared library is updated on which the tom_testdata depends to avoid crashes.
- name: Install tom_testdata for vcpkg-linux-drivers.yml
if: matrix.compiler.key == 'gcc13' && matrix.drivers-type == 'Static' && matrix.build-type.key == 'release'
working-directory: ${{ env.TinyORMBuildTree }}/tests/testdata_tom
run: |
cp --force --target-directory="$(realpath ~/bin)" ./tom_testdata
# The reason for this is the concurrency:group: can contain only two in_progress workflows,
# one will be in_progress and the second will be queued (waiting until the first finish),
# and all others will be canceled.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vcpkg-linux-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ jobs:
# The linux-qt6-drivers.yml workflow calls migrate:fresh and it calls the db:wipe internally,
# so we need a freshly migrated MySQL database, I should use fresh database anyway.
# The tom_testdata binary lives in the /usr/local/bin/ and it's from GCC static Release build
# build-TinyDrivers-gcc13-Static-release, I don't need the latest actual version build before.
# The tom_testdata binary lives in the ~/bin/ and it's from GCC static Release build
# build-TinyDrivers-gcc13-Static-release.
- name: Prepare MySQL database
run: |
tom_testdata migrate:fresh --database=tinyorm_testdata_tom_mysql --seed --drop-views
Expand Down

0 comments on commit 0a354fb

Please sign in to comment.