38
38
39
39
- name : TinyORM prepare environment
40
40
run : |
41
- $runnerWorkPath = Resolve-Path -Path '${{ runner.workspace }} /..'
41
+ $runnerWorkPath = Resolve-Path -Path "$env:RUNNER_WORKSPACE /.."
42
42
"TinyRunnerWorkPath=$runnerWorkPath" >> $env:GITHUB_ENV
43
43
44
44
$sqlitePath = Join-Path -Path $runnerWorkPath -ChildPath "SQLite/$env:DB_SQLITE_DATABASE"
70
70
- name : PostgreSQL SSL certificates initialize
71
71
id : openssl-initialize-postgresql-certificates
72
72
run : |
73
- $folderPath = Join-Path -Path '${{ env. TinyRunnerWorkPath }}' `
73
+ $folderPath = Join-Path -Path $ env: TinyRunnerWorkPath `
74
74
-ChildPath 'tiny-postgresql-certificates'
75
75
76
76
# Create an empty folder for generating certificates
@@ -261,15 +261,15 @@ jobs:
261
261
262
262
- name : MySQL create data folder
263
263
run : |
264
- New-Item -Type Directory '${{ env. TinyMySQLDataPath }}'
264
+ New-Item -Type Directory $ env: TinyMySQLDataPath
265
265
266
266
- name : MySQL initialize my.ini configuration
267
267
working-directory : .github/resources/windows
268
268
run : >-
269
269
(Get-Content -Path ./my_8_ssl.template.ini) -creplace
270
- '\{MYSQL_DATADIR\}', '${{ env. TinyMySQLDataPath }}' -creplace
270
+ '\{MYSQL_DATADIR\}', $ env: TinyMySQLDataPath -creplace
271
271
'\{MYSQL_HOST\}', $env:DB_MYSQL_HOST |
272
- Set-Content -Path '${{ env. TinyMySQLInstallationPath }} /my.ini'
272
+ Set-Content -Path "$ env: TinyMySQLInstallationPath/my.ini"
273
273
env :
274
274
DB_MYSQL_HOST : ${{ secrets.DB_MYSQL_HOST_SSL }}
275
275
@@ -297,7 +297,7 @@ jobs:
297
297
- name : MySQL SSL certificates initialize
298
298
id : openssl-initialize-mysql-certificates
299
299
run : |
300
- $folderPath = Join-Path -Path '${{ env. TinyRunnerWorkPath }}' `
300
+ $folderPath = Join-Path -Path $ env: TinyRunnerWorkPath `
301
301
-ChildPath 'tiny-mysql-certificates'
302
302
303
303
# Create an empty folder for generating certificates
@@ -385,17 +385,15 @@ jobs:
385
385
working-directory : ${{ steps.openssl-initialize-mysql-certificates.outputs.FolderPath }}
386
386
run : |
387
387
Write-Output '::group::Install CA certificate'
388
- Move-Item -Path ./ca.pem -Destination '${{ env. TinyMySQLDataPath }}'
388
+ Move-Item -Path ./ca.pem -Destination $ env: TinyMySQLDataPath
389
389
Write-Output '::endgroup::'
390
390
391
391
Write-Output '::group::Install server certificates'
392
- Move-Item -Path ./server-cert.pem, ./server-key.pem `
393
- -Destination '${{ env.TinyMySQLDataPath }}'
392
+ Move-Item -Path ./server-cert.pem, ./server-key.pem -Destination $env:TinyMySQLDataPath
394
393
Write-Output '::endgroup::'
395
394
396
395
Write-Output '::group::Install client certificates'
397
- Move-Item -Path ./client-cert.pem, ./client-key.pem `
398
- -Destination '${{ env.TinyMySQLDataPath }}'
396
+ Move-Item -Path ./client-cert.pem, ./client-key.pem -Destination $env:TinyMySQLDataPath
399
397
Write-Output '::endgroup::'
400
398
401
399
- name : MySQL service install/start
@@ -411,8 +409,8 @@ jobs:
411
409
run : >-
412
410
"alter user '$env:DB_MYSQL_ROOT_USERNAME'@'localhost'
413
411
identified with caching_sha2_password by '$env:DB_MYSQL_ROOT_PASSWORD'
414
- require issuer '${{ env. DB_MYSQL_SSL_SUBJECT_CA }} ' and
415
- subject '${{ env. DB_MYSQL_SSL_SUBJECT_CLIENT }} ';" |
412
+ require issuer '$env: DB_MYSQL_SSL_SUBJECT_CA' and
413
+ subject '$env: DB_MYSQL_SSL_SUBJECT_CLIENT';" |
416
414
mysql.exe --user=$env:DB_MYSQL_ROOT_USERNAME
417
415
--password=$($env:secured_password | ConvertTo-SecureString |
418
416
ConvertFrom-SecureString -AsPlainText)
@@ -430,12 +428,12 @@ jobs:
430
428
$filename = (Split-Path -Path $env:URL_MYSQL_TIMEZONE_TABLES -Leaf)
431
429
"Filename=$filename" >> $env:GITHUB_OUTPUT
432
430
433
- $filepath = Join-Path -Path ${{ runner.temp }} -ChildPath $filename
431
+ $filepath = Join-Path -Path $env:RUNNER_TEMP -ChildPath $filename
434
432
"Filepath=$filepath" >> $env:GITHUB_OUTPUT
435
433
436
434
$basename = Split-Path -Path $filename -LeafBase
437
435
438
- $extractedFolder = Join-Path -Path ${{ runner.temp }} -ChildPath $basename
436
+ $extractedFolder = Join-Path -Path $env:RUNNER_TEMP -ChildPath $basename
439
437
"ExtractedFolder=$extractedFolder" >> $env:GITHUB_OUTPUT
440
438
441
439
"Hash=$basename" >> $env:GITHUB_OUTPUT
@@ -461,7 +459,7 @@ jobs:
461
459
Select-Object -ExpandProperty Content |
462
460
Set-Content -Path $env:archive_filepath -AsByteStream
463
461
464
- 7z.exe x -y -o'${{ runner.temp }}' " $env:archive_filepath"
462
+ 7z.exe x -y -o"$env:RUNNER_TEMP" $env:archive_filepath
465
463
env :
466
464
archive_filepath : ${{ steps.downloads-initialize-mysql-timezone-tables.outputs.Filepath }}
467
465
URL_MYSQL_TIMEZONE_TABLES : ${{ secrets.URL_MYSQL_TIMEZONE_TABLES }}
@@ -520,8 +518,8 @@ jobs:
520
518
run : >-
521
519
"create user '$env:DB_MYSQL_USERNAME'@'%'
522
520
identified with caching_sha2_password by '$env:DB_MYSQL_PASSWORD'
523
- require issuer '${{ env. DB_MYSQL_SSL_SUBJECT_CA }} ' and
524
- subject '${{ env. DB_MYSQL_SSL_SUBJECT_CLIENT }} ';
521
+ require issuer '$env: DB_MYSQL_SSL_SUBJECT_CA' and
522
+ subject '$env: DB_MYSQL_SSL_SUBJECT_CLIENT';
525
523
grant all privileges on ``tinyorm\_%``.* to '$env:DB_MYSQL_USERNAME'@'%';
526
524
grant select on ``mysql``.``time_zone_name`` to '$env:DB_MYSQL_USERNAME'@'%';
527
525
flush privileges;" |
@@ -536,16 +534,16 @@ jobs:
536
534
537
535
- name : MySQL add libmysql.dll on the $env:Path, INCLUDE, and LIB
538
536
run : |
539
- '${{ env. TinyMySQLInstallationPath }} \lib' >> $env:GITHUB_PATH
537
+ "$ env: TinyMySQLInstallationPath\lib" >> $env:GITHUB_PATH
540
538
# Needed by the lastest FindMySQL.cmake module, it stopped working without this
541
- ' INCLUDE=${{ env. TinyMySQLInstallationPath }} \include' >> $env:GITHUB_ENV
542
- ' LIB=${{ env. TinyMySQLInstallationPath }} \lib' >> $env:GITHUB_ENV
539
+ " INCLUDE=$env: TinyMySQLInstallationPath\include" >> $env:GITHUB_ENV
540
+ " LIB=$env: TinyMySQLInstallationPath\lib" >> $env:GITHUB_ENV
543
541
544
542
- name : SQLite create TinyORM database
545
543
run : |
546
- New-Item -Type Directory (Split-Path -Parent -Path '${{ env. TinySQLitePath }}' )
544
+ New-Item -Type Directory (Split-Path -Parent -Path $ env: TinySQLitePath)
547
545
548
- New-Item -Type File -Path '${{ env. TinySQLitePath }}'
546
+ New-Item -Type File -Path $ env: TinySQLitePath
549
547
550
548
- name : Print MySQL, PostgreSQL database versions
551
549
run : |
@@ -609,7 +607,7 @@ jobs:
609
607
-QtRootPath (Get-Item -Path $env:QT_PLUGIN_PATH).Parent.Parent.Parent
610
608
-QtVersion $env:TINY_QT_VERSION -QtSpec $env:TINY_QT_SPEC
611
609
-MySQLServerPath $env:TinyMySQLInstallationPath
612
- -BuildPath '${{ runner.workspace }}'
610
+ -BuildPath $env:RUNNER_WORKSPACE
613
611
614
612
- name : Cache LLVM and Clang
615
613
id : llvm-cache
0 commit comments