Skip to content

Commit c3d538d

Browse files
committed
Update: Remove support on watching for OSX
1 parent dfedf66 commit c3d538d

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,14 @@ jobs:
127127
steps:
128128
- uses: actions/checkout@v4
129129

130-
- name: Prepare
131-
run: |
132-
apk update
133-
apk add --no-cache ldc dub clang
130+
- uses: MrcSnm/setup-dlang@v2
131+
with:
132+
compiler: ldc-latest
133+
redub: 1.24.15
134+
134135
- name: Build
135136
run: |
136-
dub build -b release-debug
137+
redub build -b release-debug
137138
- run: mv build/redub redub-${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'latest' }}-alpine-${{ matrix.arch }}
138139
- uses: actions/upload-artifact@v4
139140
with:

dub.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,22 @@
1010
{
1111
"name": "cli",
1212
"targetType": "executable",
13-
"versions": ["RedubCLI", "FSWForcePoll"],
13+
"platforms": ["windows", "linux"],
14+
"versions": ["RedubCLI", "FSWForcePoll", "RedubWatcher"],
1415
"dependencies": {
1516
"fswatch": "~>0.6.1",
1617
"arsd-official:terminal": "~>12.0"
1718
}
1819
},
20+
{
21+
"name": "cli-osx",
22+
"targetType": "executable",
23+
"platforms": ["osx"],
24+
"versions": ["RedubCLI"]
25+
},
1926
{
2027
"name": "cli-dev",
21-
"versions": ["RedubCLI", "Developer", "FSWForcePoll"],
28+
"versions": ["RedubCLI", "Developer", "RedubWatcher", "FSWForcePoll"],
2229
"targetType": "executable",
2330
"dependencies": {
2431
"fswatch": "~>0.6.1",

source/app.d

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@ int main(string[] args)
6666
"deps": &depsMain,
6767
"test": &testMain,
6868
"init": &initMain,
69-
"watch": &watchMain,
69+
// "watch": &watchMain,
7070
"run": cast(int function(string[]))null
7171
];
7272

73+
version(RedubWatcher)
74+
entryPoints["watch"] = &watchMain;
75+
7376

7477
foreach(cmd; entryPoints.byKey)
7578
{

source/redub/extensions/watcher.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module redub.extensions.watcher;
22

33
version(RedubCLI):
4+
version(RedubWatcher):
5+
46
import redub.extensions.cli;
57

68
int watchMain(string[] args)

0 commit comments

Comments
 (0)