-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update test workflows and related codes.
- Loading branch information
Showing
20 changed files
with
345 additions
and
122 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Build Multi-GCC | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build-gcc: | ||
if: >- | ||
! contains(toJSON(github.event.commits.*.message), '[skip ci]') && | ||
! contains(toJSON(github.event.commits.*.message), '[skip github]') | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
gcc_version: ['latest', '12', '11', '10', '9', '8', '7', '6', '5', '4.8.5'] | ||
build_type: [Release] | ||
|
||
name: "In Container GCC ${{matrix.gcc_version}} ${{matrix.build_type}}" | ||
|
||
container: | ||
image: gcc:${{matrix.gcc_version}} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: friendlyanon/fetch-core-count@v1 | ||
id: cores | ||
|
||
- name: Set output | ||
id: strings | ||
shell: bash | ||
run: | | ||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | ||
- name: Configure | ||
run: >- | ||
cmake -B ${{ steps.strings.outputs.build-output-dir }} | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-S ${{ github.workspace }} | ||
- name: Build | ||
run: >- | ||
cmake --build ${{ steps.strings.outputs.build-output-dir }} | ||
--config ${{ matrix.build_type }} | ||
-- -j ${{steps.cores.outputs.count}} | ||
- name: Test | ||
working-directory: ${{ steps.strings.outputs.build-output-dir }} | ||
run: ctest --output-on-failure --build-config ${{ matrix.build_type }} |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build MacOS | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build-macos: | ||
if: >- | ||
! contains(toJSON(github.event.commits.*.message), '[skip ci]') && | ||
! contains(toJSON(github.event.commits.*.message), '[skip github]') | ||
runs-on: ${{matrix.os}} | ||
|
||
strategy: | ||
matrix: | ||
os: [ 'macos-14.5' ] | ||
xcode: [ '15.4' ] | ||
build_type: [ Release ] | ||
|
||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_${{matrix.xcode}}.app/Contents/Developer | ||
|
||
name: "On ${{matrix.os}} Xcode ${{matrix.xcode}} ${{matrix.build_type}}" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: friendlyanon/fetch-core-count@v1 | ||
id: cores | ||
|
||
- name: Set output | ||
id: strings | ||
shell: bash | ||
run: | | ||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | ||
- name: Configure | ||
run: >- | ||
cmake -B ${{ steps.strings.outputs.build-output-dir }} | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-S ${{ github.workspace }} | ||
- name: Build | ||
run: >- | ||
cmake --build ${{ steps.strings.outputs.build-output-dir }} | ||
--config ${{ matrix.build_type }} | ||
-- -j ${{steps.cores.outputs.count}} | ||
- name: Test | ||
working-directory: ${{ steps.strings.outputs.build-output-dir }} | ||
run: ctest --output-on-failure --build-config ${{ matrix.build_type }} |
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Build MinGW | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build-mingw: | ||
if: >- | ||
! contains(toJSON(github.event.commits.*.message), '[skip ci]') && | ||
! contains(toJSON(github.event.commits.*.message), '[skip github]') | ||
runs-on: ${{matrix.os}} | ||
|
||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
os: [ windows-latest ] | ||
build_type: [ Release ] | ||
config: | ||
- msystem: "MINGW64" | ||
install: >- | ||
git mingw-w64-x86_64-cmake | ||
mingw-w64-x86_64-gcc mingw-w64-x86_64-g++ | ||
mingw-w64-x86_64-ninja | ||
name: "On ${{matrix.os}} ${{matrix.config.msystem}} ${{matrix.build_type}}" | ||
|
||
env: | ||
CMAKE_GENERATOR: 'Ninja' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
update: true | ||
msystem: ${{matrix.config.msystem}} | ||
install: ${{matrix.config.install}} | ||
|
||
- name: Set output | ||
id: strings | ||
shell: bash | ||
run: | | ||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | ||
- name: Configure | ||
run: >- | ||
cmake -B ${{ steps.strings.outputs.build-output-dir }} | ||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | ||
-S ${{ github.workspace }} | ||
- name: Build | ||
run: >- | ||
cmake --build ${{ steps.strings.outputs.build-output-dir }} | ||
--config ${{ matrix.build_type }} | ||
- name: Test | ||
working-directory: ${{ steps.strings.outputs.build-output-dir }} | ||
run: ctest --output-on-failure --build-config ${{ matrix.build_type }} |
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
Oops, something went wrong.