Skip to content

Safe update #261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 25 additions & 22 deletions .github/workflows/dub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
compiler:
- dmd-latest
- ldc-latest
- dmd-2.098.1
- dmd-2.097.2
- dmd-2.096.1
- dmd-2.095.1
- dmd-2.094.2
- ldc-1.25.1 # eq to dmd v2.095.1
- ldc-1.24.0 # eq to dmd v2.094.1
- ldc-1.28.1 # eq to dmd v2.098.1
- ldc-1.27.1 # eq to dmd v2.097.2
steps:
- uses: actions/checkout@v2

Expand All @@ -39,17 +39,16 @@ jobs:
with:
compiler: ${{ matrix.compiler }}

# Note: this is not needed, because vanilla mysql-natve has no dependencies
#- name: Upgrade dub dependencies
# uses: WebFreak001/dub-upgrade@v0.1
- name: Upgrade dub dependencies
uses: WebFreak001/dub-upgrade@v0.1.1

- name: Build Library
run: dub build --build=release --config=library

# cache
#- uses: WebFreak001/dub-upgrade@v0.1
# if: startsWith(matrix.os, 'windows')
# with: { store: true }
- uses: WebFreak001/dub-upgrade@v0.1.1
if: startsWith(matrix.os, 'windows')
with: { store: true }

# Older compiler versions
build-older:
Expand All @@ -59,6 +58,8 @@ jobs:
matrix:
os: [ ubuntu-latest, windows-latest ] # don't bother with macos-latest
compiler:
- dmd-2.095.1
- dmd-2.094.2
- dmd-2.093.1
- dmd-2.092.1
- dmd-2.091.1
Expand All @@ -68,15 +69,18 @@ jobs:
- dmd-2.087.1
- dmd-2.086.1
- dmd-2.085.1
- dmd-2.084.1
- dmd-2.083.1
- dmd-2.082.1
- dmd-2.081.2
- dmd-2.080.1
# These compilers do not work with dub for downloading taggedalgebraic
#- dmd-2.084.1
#- dmd-2.083.1
#- dmd-2.082.1
#- dmd-2.081.2
#- dmd-2.080.1
- ldc-1.27.1 # eq to dmd v2.097.2
- ldc-1.26.0 # eq to dmd v2.096.1
- ldc-1.25.1 # eq to dmd v2.095.1
- ldc-1.24.0 # eq to dmd v2.094.1
- ldc-1.23.0 # eq to dmd v2.093.1
- ldc-1.22.0 # eq to dmd v2.092.1
- ldc-1.21.0 # eq to dmd v2.091.1
- ldc-1.20.1 # eq to dmd v2.090.1
- ldc-1.19.0 # eq to dmd v2.089.1
runs-on: ${{ matrix.os }}

Expand All @@ -88,13 +92,12 @@ jobs:
with:
compiler: ${{ matrix.compiler }}

# Note: this is not needed, because vanilla mysql-natve has no dependencies
#- name: Upgrade dub dependencies
# uses: WebFreak001/dub-upgrade@v0.1
- name: Upgrade dub dependencies
uses: WebFreak001/dub-upgrade@v0.1.1

- name: Build Library
run: dub build --build=release --config=library

# cache
#- uses: WebFreak001/dub-upgrade@v0.1
# with: { store: true }
- uses: WebFreak001/dub-upgrade@v0.1.1
with: { store: true }
16 changes: 8 additions & 8 deletions .github/workflows/integration-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ jobs:
compiler:
- dmd-latest
- ldc-latest
- dmd-2.095.1
- dmd-2.094.2
- ldc-1.25.1 # eq to dmd v2.095.1
- ldc-1.24.0 # eq to dmd v2.094.1
- dmd-2.098.1
- dmd-2.097.2
- ldc-1.28.1 # eq to dmd v2.098.1
- ldc-1.27.0 # eq to dmd v2.097.2

runs-on: ubuntu-20.04

Expand Down Expand Up @@ -157,10 +157,10 @@ jobs:
compiler:
- dmd-latest
- ldc-latest
- dmd-2.095.1
- dmd-2.094.2
- ldc-1.25.1 # eq to dmd v2.095.1
- ldc-1.24.0 # eq to dmd v2.094.1
- dmd-2.098.1
- dmd-2.097.2
- ldc-1.28.1 # eq to dmd v2.098.1
- ldc-1.27.0 # eq to dmd v2.097.2

runs-on: ubuntu-20.04

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dub.selections.json
*.lib
*.dll
*.exe
.*.swp
/bin
/testConnectionStr.txt

Expand Down
186 changes: 186 additions & 0 deletions SAFE_MIGRATION.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions ddoc/macros.ddoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Macros:
DOLLAR = $
COLON = :
EM = $(B $(I $0) )

TYPE_MAPPINGS = See the $(LINK2 $(DDOX_ROOT_DIR)/mysql.html, MySQL/D Type Mappings tables)

SAFE_MIGRATION = See the $(LINK2 https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md, Safe Migration) document for more details.

STD_DATETIME_DATE = $(D_INLINECODE $(LINK2 https://dlang.org/phobos/std_datetime_date.html#$0, $0))
STD_EXCEPTION = $(D_INLINECODE $(LINK2 https://dlang.org/phobos/std_exception.html#$0, $0))
STD_FILE = $(D_INLINECODE $(LINK2 https://dlang.org/phobos/std_file.html#$0, $0))
Expand Down
3 changes: 2 additions & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name "mysql-native"
description "A native MySQL driver implementation based on Steve Teale's original"
license "BSL-1.0"
copyright "Copyright (c) 2011-2021 Steve Teale, James W. Oliphant, Simen Endsjø, Sönke Ludwig, Sergey Shamov, Nick Sabalausky, and Steven Schveighoffer"
copyright "Copyright (c) 2011-2022 Steve Teale, James W. Oliphant, Simen Endsjø, Sönke Ludwig, Sergey Shamov, Nick Sabalausky, and Steven Schveighoffer"
authors "Steve Teale" "James W. Oliphant" "Simen Endsjø" "Sönke Ludwig" "Sergey Shamov" "Nick Sabalausky" "Steven Schveighoffer"

dependency "vibe-core" version=">=1.16.0" optional=true
dependency "taggedalgebraic" version=">=0.11.22"

toolchainRequirements frontend=">=2.068"

Expand Down
Loading