Skip to content

Commit

Permalink
Update .github
Browse files Browse the repository at this point in the history
  • Loading branch information
dokutoku committed Mar 29, 2021
1 parent 012ac3b commit 11b978e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- name: ldc2 build
shell: cmd
run: |
call vc_init.bat && C:\ldc2\bin\dub.exe build --force --combined --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=C:\ldc2\bin\ldc2.exe
call vc_init.bat && C:\ldc2\bin\dub.exe build --force --combined --build-mode=allAtOnce --config=betterC-library --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=C:\ldc2\bin\ldc2.exe
- name: Create Windows archive
run: |
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:

- name: ldc2 build
run: |
/Users/runner/ldc2/bin/dub build --force --combined --arch=x86_64 --build=${{ matrix.build-type }} --compiler=/Users/runner/ldc2/bin/ldc2;
/Users/runner/ldc2/bin/dub build --force --combined --build-mode=allAtOnce --config=betterC-library --arch=x86_64 --build=${{ matrix.build-type }} --compiler=/Users/runner/ldc2/bin/ldc2;
- name: Create OSX archive
run: |
Expand Down Expand Up @@ -344,9 +344,15 @@ jobs:
- name: checkout
uses: actions/checkout@v2

- name: ldc2 build
- name: ldc2 betterC-library build
if: ${{ (matrix.dub-arch != 'wasm32-unknown-unknown-webassembly') }}
run: |
/home/runner/ldc2/bin/dub build --force --combined --build-mode=allAtOnce --config=betterC-library --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=/home/runner/ldc2/bin/ldc2;
- name: ldc2 wasm32 build
if: ${{ (matrix.dub-arch == 'wasm32-unknown-unknown-webassembly') }}
run: |
/home/runner/ldc2/bin/dub build --force --combined --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=/home/runner/ldc2/bin/ldc2;
/home/runner/ldc2/bin/dub build --force --combined --build-mode=allAtOnce --config=wasm32 --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=/home/runner/ldc2/bin/ldc2;
- name: Create Linux x86_64 archive
if: ${{ (matrix.dub-arch == 'x86_64') }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/cross-compiling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,18 @@ jobs:
if: ${{ (matrix.dub-arch == 'x86') || (matrix.dub-arch == 'x86_mscoff') }}
shell: cmd
run: |
call vc_init.bat && C:\D\dmd2\windows\bin\dub.exe build --force --combined --arch=x86_mscoff --build=${{ matrix.build-type }} --compiler=C:\D\dmd2\windows\bin\dmd.exe
call vc_init.bat && C:\D\dmd2\windows\bin\dub.exe test --force --combined --build-mode=allAtOnce --config=library --arch=x86_mscoff --build=${{ matrix.build-type }} --compiler=C:\D\dmd2\windows\bin\dmd.exe
- name: dmd build
if: ${{ (matrix.dub-arch != 'x86') && (matrix.dub-arch != 'x86_mscoff') }}
shell: cmd
run: |
call vc_init.bat && C:\D\dmd2\windows\bin\dub.exe build --force --combined --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=C:\D\dmd2\windows\bin\dmd.exe
call vc_init.bat && C:\D\dmd2\windows\bin\dub.exe test --force --combined --build-mode=allAtOnce --config=library --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=C:\D\dmd2\windows\bin\dmd.exe
- name: ldc2 build
shell: cmd
run: |
call vc_init.bat && C:\ldc2\bin\dub.exe build --force --combined --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=C:\ldc2\bin\ldc2.exe
call vc_init.bat && C:\ldc2\bin\dub.exe test --force --combined --build-mode=allAtOnce --config=library --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=C:\ldc2\bin\ldc2.exe
- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -254,11 +254,11 @@ jobs:

- name: dmd build
run: |
dub build --force --combined --build=${{ matrix.build-type }};
dub test --force --combined --build-mode=allAtOnce --config=library --build=${{ matrix.build-type }};
- name: ldc2 build
run: |
/Users/runner/ldc2/bin/dub build --force --combined --arch=x86_64 --build=${{ matrix.build-type }} --compiler=/Users/runner/ldc2/bin/ldc2;
/Users/runner/ldc2/bin/dub test --force --combined --build-mode=allAtOnce --config=library --arch=x86_64 --build=${{ matrix.build-type }} --compiler=/Users/runner/ldc2/bin/ldc2;
- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -383,12 +383,12 @@ jobs:

- name: dmd build
run: |
dub build --force --combined --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }};
dub test --force --combined --build-mode=allAtOnce --config=library --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }};
- name: ldc2 build
run: |
/home/runner/ldc2/bin/dub build --force --combined --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=/home/runner/ldc2/bin/ldc2;
/home/runner/ldc2/bin/dub build --force --combined --arch=wasm32-unknown-unknown-webassembly --build=${{ matrix.build-type }} --compiler=/home/runner/ldc2/bin/ldc2;
/home/runner/ldc2/bin/dub test --force --combined --build-mode=allAtOnce --config=library --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=/home/runner/ldc2/bin/ldc2;
/home/runner/ldc2/bin/dub build --force --combined --build-mode=allAtOnce --config=wasm32 --arch=wasm32-unknown-unknown-webassembly --build=${{ matrix.build-type }} --compiler=/home/runner/ldc2/bin/ldc2;
- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 11b978e

Please sign in to comment.