forked from zeroc-ice/ice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
162 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,55 @@ | ||
name: Build Ice | ||
|
||
inputs: | ||
language: | ||
description: "The programming language to build" | ||
required: true | ||
working_directory: | ||
description: "The working directory to run the build in" | ||
default: "." | ||
type: string | ||
make_flags: | ||
description: "Additional flags to pass to make" | ||
required: false | ||
|
||
build_flags: | ||
description: "Additional flags to pass to the build" | ||
default: "" | ||
type: string | ||
|
||
msbuild_project: | ||
description: "The project file to build" | ||
default: "ice.proj" | ||
type: string | ||
|
||
build_cpp_and_python: | ||
description: "Build C++ and Python" | ||
type: choice | ||
default: "false" | ||
options: | ||
- true | ||
- false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# Linux / macOS | ||
- name: Build C++ Dependencies | ||
working-directory: ./cpp | ||
run: make -j3 V=1 srcs | ||
shell: bash | ||
if: (runner.os == 'macOS' || runner.os == 'Linux') && (inputs.language != 'cpp' || matrix.name == 'xcodesdk') | ||
|
||
- name: Build C++ Tests for Scripting Languages | ||
working-directory: ./cpp | ||
run: make -j3 V=1 tests | ||
shell: bash | ||
if: (runner.os == 'macOS' || runner.os == 'Linux') && (inputs.language == 'php' || inputs.language == 'js' || inputs.language == 'ruby') | ||
|
||
- name: Build Ice for Python | ||
working-directory: ./python | ||
run: make -j3 V=1 | ||
shell: bash | ||
if: (runner.os == 'macOS' || runner.os == 'Linux') && (inputs.language == 'matlab' || matrix.name == 'xcodesdk') | ||
|
||
- name: Build ${{ matrix.name || matrix.language }} | ||
working-directory: ./${{ inputs.language }} | ||
# macOS and Linux | ||
- name: Build C++ and Python | ||
run: | | ||
make ${{ inputs.make_flags }} -j3 V=1 | ||
make -C cpp srcs | ||
make -C python | ||
shell: bash | ||
if: (runner.os == 'macOS' || runner.os == 'Linux') && inputs.build_cpp_and_python == 'true' | ||
- name: Build | ||
working-directory: ${{ inputs.working_directory }} | ||
run: make ${{ inputs.build_flags }} | ||
shell: bash | ||
if: runner.os == 'macOS' || runner.os == 'Linux' | ||
|
||
# Windows | ||
- name: Build C++ Dependencies | ||
run: msbuild /m /p:Platform=x64 msbuild/ice.proj | ||
working-directory: ./cpp | ||
shell: powershell | ||
if: (runner.os == 'Windows') && (inputs.language != 'cpp') | ||
|
||
- name: Build Ice for Python | ||
run: msbuild /m /p:Platform=x64 msbuild/ice.proj | ||
working-directory: ./python | ||
- name: Build C++ and Python | ||
run: | | ||
msbuild /m ${{ inputs.build_flags }} /t:BuildDist cpp/msbuild/ice.proj | ||
msbuild /m ${{ inputs.build_flags }} python/msbuild/ice.proj | ||
shell: powershell | ||
if: runner.os == 'Windows' && inputs.language == 'matlab' | ||
if: runner.os == 'Windows' && inputs.build_cpp_and_python == 'true' | ||
|
||
- name: Build ${{ matrix.name || matrix.language }} | ||
run: msbuild /m /p:Platform=x64 msbuild/ice.proj | ||
working-directory: ./${{ inputs.language }} | ||
- name: Build | ||
working-directory: ${{ inputs.working_directory }} | ||
run: msbuild /m ${{ inputs.build_flags }} ${{ inputs.msbuild_project }} | ||
shell: powershell | ||
if: runner.os == 'Windows' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
name: Test Ice | ||
|
||
inputs: | ||
working_directory: | ||
description: "The working directory to run the tests in" | ||
type: string | ||
|
||
flags: | ||
description: "Flags to pass to the test" | ||
required: false | ||
type: string | ||
default: "" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Test ${{ matrix.name || matrix.language }} | ||
run: python3 allTests.py --debug --all --continue --workers=4 --export-xml=test-report.xml --languages=${{ matrix.language }} ${{ inputs.flags }} | ||
- name: Test | ||
working-directory: ${{ inputs.working_directory }} | ||
run: python3 allTests.py --debug --all --continue --workers=4 --export-xml=test-report.xml ${{ inputs.flags }} | ||
shell: bash | ||
if: runner.os == 'macOS' || runner.os == 'Linux' | ||
|
||
- name: Test | ||
run: python allTests.py --debug --all --continue --export-xml=test-report.xml --platform=x64 --config=Release --workers=4 --languages=${{ matrix.language }} ${{ inputs.flags }} | ||
working-directory: ${{ inputs.working_directory }} | ||
run: python allTests.py --debug --all --continue --export-xml=test-report.xml --workers=4 ${{ inputs.flags }} | ||
shell: powershell | ||
if: runner.os == 'Windows' | ||
|
||
- name: Test Summary | ||
uses: test-summary/action@v2 | ||
with: | ||
paths: "test-report.xml" | ||
paths: "${{ inputs.working_directory }}/test-report.xml" | ||
if: always() |
Oops, something went wrong.