Skip to content

Commit

Permalink
Merge pull request #200 from shoo/fix_issue189
Browse files Browse the repository at this point in the history
Fix #189 LDC1.32でCIが動かないためコンパイラバージョンを固定する
  • Loading branch information
shoo committed Sep 23, 2023
2 parents 79488f7 + 2056771 commit 816d33b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 75 deletions.
3 changes: 2 additions & 1 deletion .github/runner.d
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ static:
immutable subPkgs = [
PackageInfo("asdf_usage"),
PackageInfo("libdparse_usage"),
PackageInfo("vibe-d_usage", ["windows-x86_omf-", "linux-x86-", "osx-x86-"]),
// workaround https://github.com/dlang-jp/Cookbook/issues/198
PackageInfo("vibe-d_usage", ["windows-x86_omf-", "linux-x86-", "osx-x86-", "osx-x86_64-"]),
PackageInfo("windows"),
];
}
Expand Down
55 changes: 19 additions & 36 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,54 +118,38 @@ jobs:
name: coverage-windows
path: .cov

test-windows-x86_64-ldc-1_31:
name: test-windows-x86_64-ldc-1_31
# No. OS ARCH COMPILER UT DOC COV
# 6. Windows x86_64 ldc o x x
test-windows-x86_64-ldc-latest:
name: test-windows-x86_64-ldc-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-1.31.0
compiler: ldc-latest
- name: Run unit tests
run: rdmd ./.github/runner.d -a=x86_64 --mode=unit-test

# No. OS ARCH COMPILER UT DOC COV
# 6. Windows x86_64 ldc o x x
# LDC1.32で動かなくなったので一旦停止します
# https://github.com/dlang-jp/Cookbook/issues/189
# test-windows-x86_64-ldc-latest:
# name: test-windows-x86_64-ldc-latest
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install D compiler
# uses: dlang-community/setup-dlang@v1
# with:
# compiler: ldc-latest
# - name: Run unit tests
# run: rdmd ./.github/runner.d -a=x86_64 --mode=unit-test

# No. OS ARCH COMPILER UT DOC COV
# 7. Windows x86_64 dmd-master x x x x
# do-nothing

# No. OS ARCH COMPILER UT DOC COV
# 8. Windows x86_64 ldc-master o x x
# LDC1.32で動かなくなったので一旦停止します
# https://github.com/dlang-jp/Cookbook/issues/189
# test-windows-x86_64-ldc-master:
# name: test-windows-x86_64-ldc-master
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install D compiler
# uses: dlang-community/setup-dlang@v1
# with:
# compiler: ldc-master
# gh_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Run unit tests
# run: rdmd ./.github/runner.d -a=x86_64 --mode=unit-test
test-windows-x86_64-ldc-master:
name: test-windows-x86_64-ldc-master
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-master
gh_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run unit tests
run: rdmd ./.github/runner.d -a=x86_64 --mode=unit-test

# No. OS ARCH COMPILER UT DOC COV
# 9. Ubuntu x86 dmd x x x
Expand Down Expand Up @@ -321,9 +305,8 @@ jobs:
needs: [
test-windows-x86-dmd-latest,
test-windows-x86_64-dmd-latest,
test-windows-x86_64-ldc-1_31,
# test-windows-x86_64-ldc-latest,
# test-windows-x86_64-ldc-master,
test-windows-x86_64-ldc-latest,
test-windows-x86_64-ldc-master,
test-linux-x86-ldc-latest,
test-linux-x86_64-dmd-latest,
test-linux-x86_64-ldc-latest,
Expand Down
56 changes: 19 additions & 37 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,55 +113,38 @@ jobs:
with:
name: coverage-windows
path: .cov

test-windows-x86_64-ldc-1_31:
name: test-windows-x86_64-ldc-1_31
# No. OS ARCH COMPILER UT DOC COV
# 6. Windows x86_64 ldc o x x
test-windows-x86_64-ldc-latest:
name: test-windows-x86_64-ldc-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-1.31.0
compiler: ldc-latest
- name: Run unit tests
run: rdmd ./.github/runner.d -a=x86_64 --mode=unit-test

# No. OS ARCH COMPILER UT DOC COV
# 6. Windows x86_64 ldc o x x
# LDC1.32で動かなくなったので一旦停止します
# https://github.com/dlang-jp/Cookbook/issues/189
# test-windows-x86_64-ldc-latest:
# name: test-windows-x86_64-ldc-latest
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install D compiler
# uses: dlang-community/setup-dlang@v1
# with:
# compiler: ldc-latest
# - name: Run unit tests
# run: rdmd ./.github/runner.d -a=x86_64 --mode=unit-test

# No. OS ARCH COMPILER UT DOC COV
# 7. Windows x86_64 dmd-master x x x x
# do-nothing

# No. OS ARCH COMPILER UT DOC COV
# 8. Windows x86_64 ldc-master o x x
# LDC1.32で動かなくなったので一旦停止します
# https://github.com/dlang-jp/Cookbook/issues/189
# test-windows-x86_64-ldc-master:
# name: test-windows-x86_64-ldc-master
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install D compiler
# uses: dlang-community/setup-dlang@v1
# with:
# compiler: ldc-master
# gh_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Run unit tests
# run: rdmd ./.github/runner.d -a=x86_64 --mode=unit-test
test-windows-x86_64-ldc-master:
name: test-windows-x86_64-ldc-master
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-master
gh_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run unit tests
run: rdmd ./.github/runner.d -a=x86_64 --mode=unit-test

# No. OS ARCH COMPILER UT DOC COV
# 9. Ubuntu x86 dmd x x x
Expand Down Expand Up @@ -317,9 +300,8 @@ jobs:
needs: [
test-windows-x86-dmd-latest,
test-windows-x86_64-dmd-latest,
test-windows-x86_64-ldc-1_31,
# test-windows-x86_64-ldc-latest,
# test-windows-x86_64-ldc-master,
test-windows-x86_64-ldc-latest,
test-windows-x86_64-ldc-master,
test-linux-x86-ldc-latest,
test-linux-x86_64-dmd-latest,
test-linux-x86_64-ldc-latest,
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/vibe-d/source/vibed_usage/rest.d
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ unittest
thrown = e;
});

auto exitCode = runApplication();
auto exitCode = runEventLoop();
assert(exitCode == 0, "exit code: ".text(exitCode));
assert(!thrown, thrown.toString());

Expand Down

0 comments on commit 816d33b

Please sign in to comment.