-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from dzcode-io/95-setup-d-package
- Loading branch information
Showing
9 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,7 @@ rust: | |
c: | ||
- changed-files: | ||
- any-glob-to-any-file: "c/**" | ||
|
||
d: | ||
- changed-files: | ||
- any-glob-to-any-file: "d/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: D Checks | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/d-checks.yml" | ||
- "d/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7 | ||
|
||
- name: Build & Test | ||
run: | | ||
cd d | ||
dub build --compiler=$DC | ||
dub test --compiler=$DC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.dub | ||
docs.json | ||
__dummy.html | ||
docs/ | ||
/kuliya | ||
*.so | ||
*.dylib | ||
*.dll | ||
*.a | ||
*.lib | ||
d-test-* | ||
*.exe | ||
*.pdb | ||
*.o | ||
*.obj | ||
*.lst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# kuliya for D | ||
|
||
Algeria's college hierarchy dataset as a D package | ||
|
||
# Prerequisites | ||
- One of these compilers: | ||
- [DMD](https://dlang.org/download.html#dmd) official compiler (works fine with dub) | ||
- [GDC](https://gdcproject.org/downloads) GCC based compiler | ||
- [LDC](https://github.com/ldc-developers/ldc#installation) LLVM based compiler | ||
- [DUB](https://dub.pm/getting-started/install/) package manager | ||
- Note: you might need install the x86_64 arch for Apple silicon machines: | ||
```sh | ||
arch -x86_64 /usr/local/bin/brew install dub | ||
``` | ||
- Any IDE out there, preferably [VSCode](https://code.visualstudio.com/download) with [code-d](https://marketplace.visualstudio.com/items?itemName=webfreak.code-d) extension | ||
|
||
# Get Started | ||
|
||
- Run test: | ||
```sh | ||
cd d && dub test | ||
``` | ||
|
||
# Contribute | ||
|
||
Feel free to ask for help in [#kuliya](https://dzcode.slack.com/archives/C01C0155CKC) group chat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "d", | ||
"targetType": "library" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module kuliya.kuliya; | ||
|
||
unittest | ||
{ | ||
assert(1 == 1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module kuliya; | ||
|
||
public import kuliya.kuliya; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"authors": ["Omar Belghaouti"], | ||
"copyright": "Copyright © 2024, dzCode.io", | ||
"description": "Algeria's college hierarchy dataset as a D package.", | ||
"license": "MIT", | ||
"name": "kuliya", | ||
"sourcePaths": ["d/source"], | ||
"targetType": "library", | ||
"subPackages": ["d"] | ||
} |