-
Notifications
You must be signed in to change notification settings - Fork 34
Transition Azure Pipelines to Github Actions #1287
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
Merged
Changes from 35 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
5a85cb6
Transition Azure Pipelines to Github Actions
chapman39 5e8b96a
fix `on` section
chapman39 61d58ca
Merge remote-tracking branch 'origin/develop' into feature/chapman39/…
chapman39 4b3a080
try and set containers
chapman39 7a3c286
disable azure pipelines
chapman39 96b6fb6
testing volumes
chapman39 800953e
use home
chapman39 c1f52a6
disable LC temp
chapman39 4c3592f
removing home
chapman39 a16936b
try again
chapman39 a2e417c
matrix attempt 1
chapman39 a051980
matrix attempt 2
chapman39 bf3998e
matrix attempt 3
chapman39 6fcca0c
upload test results
chapman39 9bc159e
add only one codevelop job
chapman39 3a59830
fix codevelop
chapman39 c1b8f10
fix codevelop 2
chapman39 1d191a8
add github action badge
chapman39 168eee4
temp print github vars
chapman39 3f43562
unique artifact name
chapman39 2eb41ac
add code checks
chapman39 a73d47a
fix path
chapman39 3360934
remove section
chapman39 427c9d0
fix code checks, cancel previous pipelines automatically
chapman39 d5181b4
testing concurrency
chapman39 5914ed9
bye azure pipelines
chapman39 8548a43
remove `max-parallel`
chapman39 fc5c3ca
skip install on codevelop
chapman39 9b9c4b0
re-add lc ci
chapman39 b5e6738
implement hacky way to store docker image names at top of file
chapman39 4608806
clarify vars
chapman39 d868059
consistent _
chapman39 b0ade36
minor docs update
chapman39 b6a1890
Merge branch 'develop' into feature/chapman39/azure-to-github-actions
chapman39 9cd0b27
rename to "unit tests"
chapman39 7f19743
Update .github/workflows/unit-tests.yml
chapman39 d77b3af
Update .github/workflows/unit-tests.yml
chapman39 27cf804
Merge remote-tracking branch 'origin/develop' into feature/chapman39/…
chapman39 a932b9f
rename to ci tests, only upload test results if non-cuda build
chapman39 22eb85e
fix small mistake
chapman39 9a9855e
Merge branch 'develop' into feature/chapman39/azure-to-github-actions
chapman39 892072e
add comment on skipping upload tests
chapman39 74bdc43
Merge branch 'develop' into feature/chapman39/azure-to-github-actions
chapman39 6f433d4
Merge branch 'develop' into feature/chapman39/azure-to-github-actions
chapman39 c6c2651
Merge branch 'develop' into feature/chapman39/azure-to-github-actions
tupek2 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,105 @@ | ||
| name: Unit Tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
chapman39 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Cancel previous jobs if an update has been made to the pull request | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
chapman39 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| env: | ||
| CLANG_DOCKER_IMAGE: seracllnl/tpls:clang-14_08-15-24_21h-49m | ||
| CUDA_DOCKER_IMAGE: seracllnl/tpls:cuda-12_08-15-24_21h-49m | ||
| GCC_DOCKER_IMAGE: seracllnl/tpls:gcc-13_08-15-24_21h-49m | ||
|
|
||
| jobs: | ||
| # Hacky solution to reference env variables outside of `run` steps https://stackoverflow.com/a/74217028 | ||
chapman39 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| set_image_vars: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Do Nothing | ||
| run: echo | ||
| outputs: | ||
| clang_docker_image: ${{ env.CLANG_DOCKER_IMAGE }} | ||
| cuda_docker_image: ${{ env.CUDA_DOCKER_IMAGE }} | ||
| gcc_docker_image: ${{ env.GCC_DOCKER_IMAGE }} | ||
| build_and_test: | ||
| runs-on: ubuntu-22.04 | ||
| needs: | ||
| - set_image_vars | ||
| strategy: | ||
| matrix: | ||
| build_type: [ Debug, Release ] | ||
| config: | ||
| - host_config: clang@14.0.0.cmake | ||
| compiler_image: ${{ needs.set_image_vars.outputs.clang_docker_image }} | ||
| cmake_opts: "-DBUILD_SHARED_LIBS=ON" | ||
| - host_config: gcc@12.3.0_cuda.cmake | ||
| compiler_image: ${{ needs.set_image_vars.outputs.cuda_docker_image }} | ||
| cmake_opts: "-DBUILD_SHARED_LIBS=ON -DENABLE_WARNINGS_AS_ERRORS=OFF" | ||
| build_src_opts: "--skip-install --skip-tests" | ||
| - host_config: gcc@13.1.0.cmake | ||
| compiler_image: ${{ needs.set_image_vars.outputs.gcc_docker_image }} | ||
| cmake_opts: "-DBUILD_SHARED_LIBS=ON" | ||
| include: | ||
| - build_type: Debug | ||
| config: | ||
| host_config: clang@14.0.0.cmake | ||
| compiler_image: ${{ needs.set_image_vars.outputs.clang_docker_image }} | ||
| cmake_opts: "-DSERAC_ENABLE_CODEVELOP=ON" | ||
| build_src_opts: "--skip-install" | ||
| container: | ||
| image: ${{ matrix.config.compiler_image }} | ||
| volumes: | ||
| - /home/serac/serac | ||
| steps: | ||
| - name: Checkout Serac | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
| - name: Print Matrix Variables | ||
| run: | | ||
| echo "build_src_opts ${{ matrix.config.build_src_opts }}" | ||
| echo "build_type ${{ matrix.build_type }}" | ||
| echo "cmake_opts ${{ matrix.config.cmake_opts }}" | ||
| echo "compiler_image ${{ matrix.config.compiler_image }}" | ||
| echo "host_config ${{ matrix.config.host_config }}" | ||
| - name: Build and Test ${{ matrix.config.host_config }} ${{ matrix.build_type }} | ||
| timeout-minutes: 30 | ||
| run: | | ||
| ./scripts/llnl/build_src.py ${{ matrix.config.build_src_opts }} \ | ||
| --verbose \ | ||
| --host-config ${{ matrix.config.host_config }} \ | ||
| --extra-cmake-options "${{ matrix.config.cmake_opts }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}" \ | ||
| --jobs 4 | ||
| - name: Upload Test Results | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Test Results ${{ matrix.config.host_config }} ${{ matrix.build_type }} ${{ matrix.config.cmake_opts }} | ||
| path: "**/Test.xml" | ||
| if-no-files-found: ignore # Missing test file is expected on CUDA builds | ||
chapman39 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| check_code: | ||
| runs-on: ubuntu-22.04 | ||
| needs: | ||
| - set_image_vars | ||
| strategy: | ||
| matrix: | ||
| check_type: [coverage, docs, style, header] | ||
| container: | ||
| image: ${{ needs.set_image_vars.outputs.clang_docker_image }} | ||
| volumes: | ||
| - /home/serac/serac | ||
| env: | ||
| CHECK_TYPE: ${{ matrix.check_type }} | ||
| HOST_CONFIG: clang@14.0.0.cmake | ||
| steps: | ||
| - name: Checkout Serac | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
| - name: Check ${{ matrix.check_type }} | ||
| run: ./scripts/github-actions/linux-check.sh | ||
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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.