mirror of
https://github.com/pseXperiments/icicle.git
synced 2026-01-08 23:17:54 -05:00
cuda backend pull attempt
This commit is contained in:
30
.github/workflows/v3_golang.yml
vendored
30
.github/workflows/v3_golang.yml
vendored
@@ -32,10 +32,32 @@ jobs:
|
||||
if: needs.check-changed-files.outputs.golang == 'true'
|
||||
run: if [[ $(go list ./... | xargs go fmt) ]]; then echo "Please run go fmt"; exit 1; fi
|
||||
|
||||
extract-cuda-backend-branch:
|
||||
name: Extract cuda branch name
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
cuda-backend-branch: ${{ steps.extract.outputs.cuda-backend-branch }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Extract Private Branch from PR Description
|
||||
id: extract
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
DESCRIPTION=$(gh pr view ${{ github.event.pull_request.number }} --json body -q '.body')
|
||||
echo "PR Description: $DESCRIPTION"
|
||||
CUDA_BE_BRANCH=$(echo "$DESCRIPTION" | grep -oP 'cuda-backend-branch:\s*\K[^\s]+') || true
|
||||
if [ -z "$CUDA_BE_BRANCH" ]; then
|
||||
CUDA_BE_BRANCH="main" # Default branch if not specified
|
||||
fi
|
||||
echo "Extracted CUDA Backend Branch: $CUDA_BE_BRANCH"
|
||||
echo "::set-output name=cuda-backend-branch::$CUDA_BE_BRANCH"
|
||||
|
||||
build-curves-linux:
|
||||
name: Build and test curves on Linux
|
||||
runs-on: [self-hosted, Linux, X64, icicle]
|
||||
needs: [check-changed-files, check-format]
|
||||
needs: [check-changed-files, check-format, extract-cuda-backend-branch]
|
||||
strategy:
|
||||
matrix:
|
||||
curve:
|
||||
@@ -62,7 +84,7 @@ jobs:
|
||||
# builds a single curve with the curve's specified build args
|
||||
run: |
|
||||
export DEFAULT_BACKEND_INSTALL_DIR=$PWD/../../build/
|
||||
./build.sh -curve=${{ matrix.curve.name }} ${{ matrix.curve.build_args }}
|
||||
./build.sh -curve=${{ matrix.curve.name }} ${{ matrix.curve.build_args }} -cuda_backend=local
|
||||
- name: Test
|
||||
working-directory: ./wrappers/golang_v3/curves
|
||||
if: needs.check-changed-files.outputs.golang == 'true' || needs.check-changed-files.outputs.cpp_cuda == 'true'
|
||||
@@ -75,7 +97,7 @@ jobs:
|
||||
build-fields-linux:
|
||||
name: Build and test fields on Linux
|
||||
runs-on: [self-hosted, Linux, X64, icicle]
|
||||
needs: [check-changed-files, check-format]
|
||||
needs: [check-changed-files, check-format, extract-cuda-backend-branch]
|
||||
strategy:
|
||||
matrix:
|
||||
field:
|
||||
@@ -94,7 +116,7 @@ jobs:
|
||||
# builds a single field with the fields specified build args
|
||||
run: |
|
||||
export DEFAULT_BACKEND_INSTALL_DIR=$PWD/../../build/
|
||||
./build.sh -field=${{ matrix.field.name }} ${{ matrix.field.build_args }}
|
||||
./build.sh -field=${{ matrix.field.name }} ${{ matrix.field.build_args }} -cuda_backend=local
|
||||
- name: Test
|
||||
working-directory: ./wrappers/golang_v3/fields
|
||||
if: needs.check-changed-files.outputs.golang == 'true' || needs.check-changed-files.outputs.cpp_cuda == 'true'
|
||||
|
||||
Reference in New Issue
Block a user