Skip to content

Commit 13053ef

Browse files
committed
Update: Use rebuild action
1 parent 11e8e8a commit 13053ef

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/hbuild.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24-
- uses: dlang-community/setup-dlang@v2
24+
- uses: MrcSnm/setup-dlang@v2
25+
with:
26+
redub: latest
2527
- name: 'Install libcurl dev'
2628
run: |
2729
sudo apt-get update
@@ -32,7 +34,7 @@ jobs:
3234
run: |
3335
# Build the project, with its main file included, without unittests
3436
cd tools/hbuild
35-
dub run redub -- build --compiler=$DC -c ci
37+
redub build -c ci
3638
# Build and run tests, as defined by `unittest` configuration
3739
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
3840
# See https://dub.pm/package-format-json.html#configurations
@@ -46,14 +48,15 @@ jobs:
4648
runs-on: macos-latest
4749
steps:
4850
- uses: actions/checkout@v4
49-
- uses: dlang-community/setup-dlang@v2
51+
- uses: MrcSnm/setup-dlang@v2
5052
with:
53+
redub: latest
5154
compiler: ldc
5255
- name: 'Build'
5356
run: |
5457
# Build the project, with its main file included, without unittests
5558
cd tools/hbuild
56-
dub run redub -- build --compiler=$DC -c ci-macos
59+
redub build -c ci-macos
5760
- name: 'Upload'
5861
uses: actions/upload-artifact@v4.4.3
5962
with:
@@ -66,12 +69,14 @@ jobs:
6669

6770
steps:
6871
- uses: actions/checkout@v4
69-
- uses: dlang-community/setup-dlang@v2
72+
- uses: MrcSnm/setup-dlang@v2
73+
with:
74+
redub: latest
7075
- name: 'Build'
7176
run: |
7277
# Build the project, with its main file included, without unittests
7378
cd tools/hbuild
74-
dub run redub -- build -c ci-win
79+
redub build -c ci-win
7580
mkdir win-release
7681
copy win64-hbuild.exe win-release/win64-hbuild.exe
7782
copy libcurl.dll win-release/libcurl.dll

0 commit comments

Comments
 (0)