Skip to content

Commit

Permalink
Update .github
Browse files Browse the repository at this point in the history
  • Loading branch information
dokutoku committed Mar 30, 2021
1 parent 67f67d3 commit dfe3b00
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 19 deletions.
18 changes: 12 additions & 6 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,12 +227,12 @@ 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: build example
run: |
cd './example';
/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 --arch=x86_64 --build=${{ matrix.build-type }} --compiler=/Users/runner/ldc2/bin/ldc2;
- name: Create OSX archive
run: |
Expand Down Expand Up @@ -351,15 +351,21 @@ 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: build example
if: ${{ (matrix.dub-arch != 'wasm32-unknown-unknown-webassembly') }}
run: |
cd './example';
/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 --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
30 changes: 17 additions & 13 deletions .github/workflows/cross-compiling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,22 @@ 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 && C:\D\dmd2\windows\bin\dub.exe build --force --combined --build-mode=allAtOnce --config=betterC-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 && C:\D\dmd2\windows\bin\dub.exe build --force --combined --build-mode=allAtOnce --config=betterC-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 && 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: build example
# run: |
# call vc_init.bat && cd example && 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 && 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 && cd example && C:\D\dmd2\windows\bin\dub.exe build --force --combined --build-mode=allAtOnce --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=C:\D\dmd2\windows\bin\dmd.exe && C:\ldc2\bin\dub.exe build --force --combined --build-mode=allAtOnce --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 @@ -259,17 +259,19 @@ 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 }};
dub build --force --combined --build-mode=allAtOnce --config=betterC-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;
/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: build example
run: |
cd './example';
dub build --force --combined --arch=x86_64 --build=${{ matrix.build-type }};
/Users/runner/ldc2/bin/dub build --force --combined --arch=x86_64 --build=${{ matrix.build-type }} --compiler=/Users/runner/ldc2/bin/ldc2;
dub build --force --combined --build-mode=allAtOnce --arch=x86_64 --build=${{ matrix.build-type }};
/Users/runner/ldc2/bin/dub build --force --combined --build-mode=allAtOnce --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 @@ -395,18 +397,20 @@ 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 }};
dub build --force --combined --build-mode=allAtOnce --config=betterC-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=betterC-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: build example
run: |
cd './example';
dub build --force --combined --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }};
/home/runner/ldc2/bin/dub build --force --combined --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=/home/runner/ldc2/bin/ldc2;
dub build --force --combined --build-mode=allAtOnce --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }};
/home/runner/ldc2/bin/dub build --force --combined --build-mode=allAtOnce --arch=${{ matrix.dub-arch }} --build=${{ matrix.build-type }} --compiler=/home/runner/ldc2/bin/ldc2;
- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit dfe3b00

Please sign in to comment.