Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
name: CI

on: [push]
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Run monthly on the 1st at midnight UTC to test with latest pixi
- cron: '0 0 1 * *'

jobs:
run-slater-gpu:
uses: ./.github/workflows/slater-gpu-base.yml
with:
use-latest-pixi: ${{ github.event_name == 'schedule' }}
40 changes: 32 additions & 8 deletions .github/workflows/slater-gpu-base.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,48 @@
name: SlaterGPU Base

on: [workflow_call]
on:
workflow_call:
inputs:
use-latest-pixi:
type: boolean
default: false

jobs:
build:
runs-on: gpu

defaults:
run:
shell: bash
steps:
- uses: prefix-dev/setup-pixi@v0.9.1
- uses: actions/checkout@v4

- name: Extract minimum pixi version from pixi.toml
id: pixi-version
run: |
VERSION=$(grep 'requires-pixi' pixi.toml | sed 's/.*>=\([0-9.]*\).*/\1/')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Using minimum pixi version: $VERSION"

- name: Set up Pixi (minimum version)
if: ${{ !inputs.use-latest-pixi }}
uses: prefix-dev/setup-pixi@v0.9.1
with:
pixi-version: v0.54.0
pixi-version: v${{ steps.pixi-version.outputs.version }}
log-level: v
run-install: false
# cache: true
continue-on-error: true
- uses: actions/checkout@v4


- name: Set up Pixi (latest version for scheduled builds)
if: ${{ inputs.use-latest-pixi }}
uses: prefix-dev/setup-pixi@v0.9.1
with:
log-level: v
run-install: false
# cache: true
continue-on-error: true

# Cache NVHPC installation
- name: Cache NVHPC
id: cache-nvhpc
Expand All @@ -28,14 +52,14 @@ jobs:
/home/runner/work/Linux_x86_64
/home/runner/work/modulefiles
key: nvhpc-25.1-cuda-12.6-v1-${{ runner.os }}

- name: Install nvhpc
run: |
source .github/workflows/install_nvhpc.sh
env:
CACHE_HIT: ${{ steps.cache-nvhpc.outputs.cache-hit }}
continue-on-error: true

- name: Install and test SlaterGPU
run: |
source ~/.pixi/envs/environment-modules/init/bash
Expand Down
18 changes: 10 additions & 8 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
channels = ["nvidia", "conda-forge"]
platforms = ["linux-64", "linux-aarch64"]
preview = ["pixi-build"]
requires-pixi = ">=0.54"
requires-pixi = ">=0.60.0"

[package]
name = "slatergpu"
version = "0.1.14"

[package.build.backend]
name = "pixi-build-cmake"
version = "==0.3.4"
version = ">=0.3.6,<=0.3.8"

[package.build.config]
compilers = []
Expand Down