-
Notifications
You must be signed in to change notification settings - Fork 461
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
GPU CI Setup #1045
Merged
hodoulp
merged 13 commits into
AcademySoftwareFoundation:master
from
michdolan:gpu_ci_setup
Sep 3, 2020
Merged
GPU CI Setup #1045
Changes from 2 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7893e9f
Initial CodeBuild setup for GH Actions
michdolan a8e3e25
Remove extra comment
michdolan 85ea384
Remove unnecessary quotes
michdolan 2bdd83e
Disable Python build/test
michdolan 8ad69ca
Update CodeBuild project name from ARN
michdolan d3f22c5
Merge branch 'master' into gpu_ci_setup
michdolan 02c91b6
Enable headless GPU rendering, remove GLEW workaround from Analysis w…
michdolan c4fdd5f
Specify headless ON
michdolan 46dfd1d
Pull changes from gpu_ci_test branch
michdolan c1abb13
Remove GLEW workaround from buildspec
michdolan 08948af
Add GPU CI status badge to README
michdolan d4d3173
Disable GPU CI on forks
michdolan 471b75b
Merge branch 'master' into gpu_ci_setup
hodoulp 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 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 |
---|---|---|
|
@@ -213,12 +213,32 @@ jobs: | |
cmake --build . \ | ||
--target install \ | ||
--config ${{ matrix.build-type }} \ | ||
-- -j2 | ||
-- -j$(nproc) | ||
working-directory: _build | ||
- name: Test | ||
run: ctest -V | ||
working-directory: _build | ||
|
||
# --------------------------------------------------------------------------- | ||
# Linux GPU (AWS CodeBuild) | ||
# --------------------------------------------------------------------------- | ||
|
||
linux_gpu: | ||
name: 'Linux CentOS 7 VFX CY2020 GPU <GCC 6.3.1>' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.CODEBUILD_ID }} | ||
aws-secret-access-key: ${{ secrets.CODEBUILD_SECRET }} | ||
aws-region: us-west-2 | ||
- name: Run CodeBuild | ||
uses: aws-actions/[email protected] | ||
with: | ||
project-name: OpenColorIO_GPU_CI | ||
buildspec-override: buildspec.yml | ||
|
||
# --------------------------------------------------------------------------- | ||
# macOS | ||
# --------------------------------------------------------------------------- | ||
|
@@ -307,7 +327,7 @@ jobs: | |
cmake --build . \ | ||
--target install \ | ||
--config ${{ matrix.build-type }} \ | ||
-- -j2 | ||
-- -j$(sysctl -n hw.ncpu) | ||
working-directory: _build | ||
- name: Test | ||
run: ctest -V | ||
|
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,38 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
CXX: "g++" | ||
CC: "gcc" | ||
exported-variables: | ||
- CXX | ||
- CC | ||
|
||
phases: | ||
pre_build: | ||
commands: | ||
- git clone https://github.com/$GITHUB_REPOSITORY OpenColorIO | ||
- cd OpenColorIO | ||
- git checkout $GITHUB_SHA | ||
- mkdir _install _build | ||
- cd _build | ||
build: | ||
commands: | ||
- | | ||
cmake ../. \ | ||
-DCMAKE_INSTALL_PREFIX=../_install \ | ||
-DOCIO_BUILD_APPS=ON \ | ||
-DOCIO_BUILD_DOCS=OFF \ | ||
-DOCIO_BUILD_TESTS=ON \ | ||
-DOCIO_BUILD_GPU_TESTS=ON \ | ||
-DOCIO_BUILD_PYTHON=ON \ | ||
-DOCIO_INSTALL_EXT_PACKAGES=ALL \ | ||
-DOCIO_WARNING_AS_ERROR=ON \ | ||
-DPYTHON_EXECUTABLE=$(which python) | ||
- | | ||
cmake --build . \ | ||
--target install \ | ||
-- -j$(nproc) | ||
post_build: | ||
commands: | ||
- ctest -V |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file is dedicated to the AWS GPU build so, the Python build & test could be disabled.