Skip to content

Commit

Permalink
ci: bump setup-dlang v1 -> v2
Browse files Browse the repository at this point in the history
Quote `$DC` in the windows scripts as it is an absolute path which
contains `\` which need escaping.

Signed-off-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
the-horo committed May 31, 2024
1 parent 22c1f8f commit cd6dd4c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install latest DMD
uses: dlang-community/setup-dlang@v1
uses: dlang-community/setup-dlang@v2
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
# Compiler to test with
- name: Prepare compiler
uses: dlang-community/setup-dlang@v1
uses: dlang-community/setup-dlang@v2
with:
compiler: ${{ matrix.dc }}

Expand All @@ -113,10 +113,10 @@ jobs:
env:
DUB: ${{ github.workspace }}\bin\dub.exe
run: |
dub build --compiler=${{ env.DC }}
dub build --compiler="${{ env.DC }}"
if [[ ${{ matrix.do_test }} == 'true' ]]; then
dub test --compiler=${{ env.DC }}
dub run --compiler=${{ env.DC }} --single test/issue2051_running_unittests_from_dub_single_file_packages_fails.d
dub test --compiler="${{ env.DC }}"
dub run --compiler="${{ env.DC }}" --single test/issue2051_running_unittests_from_dub_single_file_packages_fails.d
dub --single test/run-unittest.d
# FIXME: DMD fails a few tests on Windows; remove them for now
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_info_untrusted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
# Compiler to test with
- name: Prepare compiler
uses: dlang-community/setup-dlang@v1
uses: dlang-community/setup-dlang@v2
with:
compiler: ldc-latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
## Boileterplate (compiler/repo)
- name: Install compiler
uses: dlang-community/setup-dlang@v1
uses: dlang-community/setup-dlang@v2
with:
compiler: ldc-latest
- name: Checkout repository
Expand Down

0 comments on commit cd6dd4c

Please sign in to comment.