build(cmake): make OptiX PTX available to build-tree tests #73
Workflow file for this run
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
| name: Build Pull Request Spack | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| spack-install: | |
| runs-on: ubuntu-latest | |
| env: | |
| IMAGE_TAG: simphony-spack-ci:pr-${{ github.event.pull_request.number }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Define environment variables | |
| run: | | |
| REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]') | |
| echo "SPACK_BUILDCACHE_MIRROR=oci://ghcr.io/${REPO_OWNER}/simphony-spack-buildcache" >> "$GITHUB_ENV" | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Spack install image and run smoke test | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| pull: true | |
| target: spack-no-env | |
| build-args: | | |
| SPACK_BUILDCACHE_MIRROR=${{ env.SPACK_BUILDCACHE_MIRROR }} |