kassane commented on code in PR #5181:
URL: https://github.com/apache/opendal/pull/5181#discussion_r1805379571


##########
.github/workflows/ci_bindings_d.yml:
##########
@@ -0,0 +1,71 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: Bindings D CI
+
+on:
+  push:
+    branches:
+      - main
+    tags:
+      - "*"
+  pull_request:
+    branches:
+      - main
+    paths:
+      - "core/**"
+      - "bindings/c/**"
+      - "bindings/d/**"
+      - ".github/workflows/ci_bindings_d.yml"
+  workflow_dispatch:
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
+  cancel-in-progress: true
+
+permissions:
+  contents: read
+
+jobs:
+  test:
+    strategy:
+      matrix:
+        dlang: ["ldc-latest", "dmd-latest"]
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - uses: dlang-community/setup-dlang@v2

Review Comment:
   Tried switch `setup-dlang` to `apt-get` another 
[branch](https://github.com/kassane/opendal/actions/workflows/ci_bindings_d.yml).
 DMD is unavailable, allowing only GDC (for D compiler bootstrap in 
debian/ubuntu) and LDC2. 
   
   But GDC uses very old druntime (frontend), and is unable to build.
   
https://github.com/apache/opendal/blob/a3823615b19944ded60d9a499cf9a032de5099eb/bindings/d/dub.json#L6-L8
   ```bash
   DC=gdmd dub build
   Error Installed gdc-2.103.1 with frontend 2.103 does not comply with opendal 
frontend requirement: >=2.105.3
   ```
   
   LDC2  (v1.36.x - dmd-frontend 2.106.x) works in ubuntu noble only!
   
   ---
   >[!NOTE]
   > ldmd2: ldc2-wrapper for dmd flags
   > gdmd: gdc-wrapper for dmd flags



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to