Skip to content

Commit

Permalink
adding meat of site
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed May 12, 2022
1 parent a083123 commit 84edadc
Show file tree
Hide file tree
Showing 1,219 changed files with 133,066 additions and 67,909 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/update-ui.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Update Spack Cache Interface
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * *'

jobs:
extraction:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Clone development branch of spack
run: git clone https://github.com/spack/spack /opt/spackywoo
- name: Run update script
run: |
export PATH=/opt/spackywoo/bin:$PATH
pip install -r requirements.txt
spack python generate_packages.py
- name: Push Results
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@users.noreply.github.com"
git add _cache
git commit -m "Automated push with new spack cache data $(date '+%Y-%m-%d')" || exit 0
git push origin main || exit 0
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
spack-db
_site
.jekyll-cache
14 changes: 14 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem 'kramdown'
gem 'kramdown-parser-gfm'
gem 'webrick'

group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
gem "jekyll-sitemap"
gem "jekyll-paginate"
end

68 changes: 68 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Spack Build Cache

> What is currently in the build cache?
This small interface provides a summary table that shows versions, compilers,
total specs, and allows for basic search!

![assets/img/portal.png](assets/img/portal.png)

When you dig into a particular build cache package, you'll
be presented with another view to inspect specs in detail, or search.

![assets/img/entry.png](assets/img/entry.png)


⭐️ [See the Build Cache!](https://spack.github.io/cache/) ⭐️

## Usage

You'll need a few dependencies:

```bash
$ pip install -r requirements.txt
```

You should then run the generate script with spack, which means that it needs to be
on your path.

```bash
$ spack python generate_cache.py
```

This will generate a folder for each package in the cache under [_cache](_cache), each
with a top level metadata file and a list of full specs. The specs are loaded on
demand.

```bash
$ tree _cache/cub
_cache/cub
├── spec-0.json
├── spec-10.json
├── spec-11.json
├── spec-1.json
├── spec-2.json
├── spec-3.json
├── spec-4.json
├── spec-5.json
├── spec-6.json
├── spec-7.json
├── spec-8.json
├── spec-9.json
└── specs.md

0 directories, 13 files
```

To view the interface locally, use jekyll:

```bash
$ bundle exec jekyll serve
```

The above would open to [http://localhost:4000/cache/](http://localhost:4000/cache/).
You can then browse the cache.

## Find an Issue?

If you find a bug or want to contribute to the interface please [let us know!](https://github.com/spack/cache/issues).
233 changes: 0 additions & 233 deletions _cache/adiak/index.md

This file was deleted.

458 changes: 458 additions & 0 deletions _cache/adiak/specs.md

Large diffs are not rendered by default.

281 changes: 0 additions & 281 deletions _cache/adios/index.md

This file was deleted.

0 comments on commit 84edadc

Please sign in to comment.