diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml new file mode 100644 index 0000000..11434fd --- /dev/null +++ b/.github/workflows/spack.yml @@ -0,0 +1,15 @@ +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - name: Set up Spack + uses: spack/setup-spack@v2 + with: + ref: develop # Spack version (examples: develop, releases/v0.21) + buildcache: true # Configure oci://ghcr.io/spack/github-actions-buildcache + color: true # Force color output (SPACK_COLOR=always) + path: spack # Where to clone Spack + + - run: spack install py-jax + + - run: spack load py-jax && python -c 'import jax.numpy as jp; print(jp.zeros(8).device)' diff --git a/.github/workflows/docker-image.yml b/.github/workflows2/docker-image.yml similarity index 100% rename from .github/workflows/docker-image.yml rename to .github/workflows2/docker-image.yml diff --git a/.github/workflows/documents.yml b/.github/workflows2/documents.yml similarity index 100% rename from .github/workflows/documents.yml rename to .github/workflows2/documents.yml diff --git a/.github/workflows/jaxbuild.dockerfile b/.github/workflows2/jaxbuild.dockerfile similarity index 100% rename from .github/workflows/jaxbuild.dockerfile rename to .github/workflows2/jaxbuild.dockerfile diff --git a/.github/workflows/publish-tags.yml b/.github/workflows2/publish-tags.yml similarity index 100% rename from .github/workflows/publish-tags.yml rename to .github/workflows2/publish-tags.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows2/pytest.yml similarity index 100% rename from .github/workflows/pytest.yml rename to .github/workflows2/pytest.yml