-
Notifications
You must be signed in to change notification settings - Fork 2
feat(ci): Add cross-platform workflow and refactor for MSVC compatibility #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
70ef147
feat(CI): Add workflow for build and test
src-lua 75f6480
fix(CI): adjust job matrix
src-lua f9991c0
fix(build): Resolve compilation errors on MSVC
src-lua 3ed990e
fix(scene): Improve local time retrieval for filename generation maki…
src-lua 10d1ba1
fix(scene): Delete copy constructor and assignment operator for Scene…
src-lua b69f25f
refactor(core): Ensure cross-platform support and refactor Triangle c…
src-lua 892e013
fix(ci): Specify configuration for ctest in debug preset
src-lua 2f9732f
refactor(geometry): roolback to transformation for clarity
src-lua 7442713
fix(color): Correct floating-point division in Color constructor for …
src-lua 9708dc8
refactor(style): Replace <math.h> with <cmath> for consistency
src-lua File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,41 @@ | ||
| name: CMake on multiple platforms | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ${{ matrix.config.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| preset: [debug, release] | ||
|
|
||
| config: | ||
| - { os: ubuntu-latest, c_compiler: gcc, cpp_compiler: g++ } | ||
| - { os: ubuntu-latest, c_compiler: clang, cpp_compiler: clang++ } | ||
| - { os: windows-latest, c_compiler: cl, cpp_compiler: cl } | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set compiler environment variables | ||
| shell: bash | ||
| run: | | ||
| echo "CC=${{ matrix.config.c_compiler }}" >> $GITHUB_ENV | ||
| echo "CXX=${{ matrix.config.cpp_compiler }}" >> $GITHUB_ENV | ||
|
|
||
| - name: Configure CMake using preset | ||
| run: cmake --preset ${{ matrix.preset }} | ||
|
|
||
| - name: Build project | ||
| run: cmake --build --preset ${{ matrix.preset }} | ||
|
|
||
| - name: Run tests | ||
| if: matrix.preset == 'debug' | ||
| working-directory: build/${{ matrix.preset }} | ||
| run: ctest -C debug --output-on-failure |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.