diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 00000000..d6783e21 --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,33 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. diff --git a/dub.json b/dub.json index 050dba6c..50051917 100644 --- a/dub.json +++ b/dub.json @@ -50,11 +50,11 @@ "versions-windows": ["Unicode"], "libs-windows": ["opengl32"], "dependencies": { - "derelict-gl3": "~>2.0.0-beta.7", - "derelict-ft": "~>2.0.0-beta.4" + "derelict-gl3": "~>2.0.0-beta.8", + "derelict-ft": "~>2.0.0-beta.5" }, "dependencies-posix": { - "derelict-sdl2": "~>3.0.0-beta.7" + "derelict-sdl2": "~>3.0.0-beta.8" }, "copyFiles-windows-x86_64": [ "libs/windows/x86_64/libfreetype-6.dll" @@ -73,8 +73,8 @@ "versions": ["USE_EXTERNAL"], "libs-windows": ["opengl32"], "dependencies": { - "derelict-gl3": "~>2.0.0-beta.7", - "derelict-ft": "~>2.0.0-beta.4" + "derelict-gl3": "~>2.0.0-beta.8", + "derelict-ft": "~>2.0.0-beta.5" } }, { @@ -84,9 +84,9 @@ "versions-windows": ["Unicode" ,"NO_OPENGL"], "libs-windows": ["opengl32"], "dependencies-posix": { - "derelict-gl3": "~>2.0.0-beta.7", - "derelict-sdl2": "~>3.0.0-beta.7", - "derelict-ft": "~>2.0.0-beta.4" + "derelict-gl3": "~>2.0.0-beta.8", + "derelict-sdl2": "~>3.0.0-beta.8", + "derelict-ft": "~>2.0.0-beta.5" } }, { @@ -94,9 +94,9 @@ "versions": ["USE_SDL", "USE_OPENGL", "USE_FREETYPE", "EmbedStandardResources"], "versions-windows": ["Unicode"], "dependencies": { - "derelict-gl3": "~>2.0.0-beta.7", - "derelict-ft": "~>2.0.0-beta.4", - "derelict-sdl2": "~>3.0.0-beta.7" + "derelict-gl3": "~>2.0.0-beta.8", + "derelict-ft": "~>2.0.0-beta.5", + "derelict-sdl2": "~>3.0.0-beta.8" }, "copyFiles-windows-x86_64": [ "libs/windows/x86_64/libfreetype-6.dll", @@ -112,9 +112,9 @@ "versions": ["USE_X11", "USE_FREETYPE", "EmbedStandardResources"], "versions-windows": ["Unicode"], "dependencies": { - "derelict-gl3": "~>2.0.0-beta.7", - "derelict-ft": "~>2.0.0-beta.4", - "x11": "~>1.0.17" + "derelict-gl3": "~>2.0.0-beta.8", + "derelict-ft": "~>2.0.0-beta.5", + "x11": "~>1.0.21" } }, { diff --git a/src/dlangui/dialogs/filedlg.d b/src/dlangui/dialogs/filedlg.d index 395398f6..352838e4 100644 --- a/src/dlangui/dialogs/filedlg.d +++ b/src/dlangui/dialogs/filedlg.d @@ -373,7 +373,6 @@ class FileDialog : Dialog, CustomGridCellAdapter { if (ts.isNull) { return "----.--.-- --:--"; } else { - //date = "%04d.%02d.%02d %02d:%02d:%02d".format(ts.year, ts.month, ts.day, ts.hour, ts.minute, ts.second); return "%04d.%02d.%02d %02d:%02d".format(ts.get.year, ts.get.month, ts.get.day, ts.get.hour, ts.get.minute); } } diff --git a/src/dlangui/dom/cssparser.d b/src/dlangui/dom/cssparser.d index 2331f1b6..69f6392d 100644 --- a/src/dlangui/dom/cssparser.d +++ b/src/dlangui/dom/cssparser.d @@ -82,13 +82,13 @@ struct CSSToken { string dimensionUnit; union { struct { - long intValue = 0; // for number and dimension - double doubleValue = 0; // for number and dimension - bool typeFlagInteger; // for number and dimension - true if number is integer, false if double + long intValue = 0; /// for number and dimension + double doubleValue = 0; /// for number and dimension + bool typeFlagInteger; /// for number and dimension - true if number is integer, false if double } struct { - uint unicodeRangeStart; // for unicodeRange (initialized to 0 via intValue=0) - uint unicodeRangeEnd; // for unicodeRange (initialized to 0 via intValue=0) + uint unicodeRangeStart; /// for unicodeRange (initialized to 0 via intValue=0) + uint unicodeRangeEnd; /// for unicodeRange (initialized to 0 via intValue=0) } bool typeFlagId; // true if identifier is valid ID } diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index 115841fb..a2741d12 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -3561,7 +3561,7 @@ class EditBox : EditWidgetBase { int i = cast(int)i_; int startingDifference = rc.left - _clientRect.left; wrapLineRect = rc; - wrapLineRect.offset(-1 * curSpan.accumulation(i, LineSpan.WrapPointInfo.Width), i * _lineHeight); + wrapLineRect.offset(-1 * curSpan.accumulation(cast(int)i, LineSpan.WrapPointInfo.Width), cast(int)i * _lineHeight); wrapLineRect.right = limitNumber(wrapLineRect.right,(rc.left + curSpan.wrapPoints[i].wrapWidth) - startingDifference); buf.fillRect(wrapLineRect, color); }