Skip to content

Update pixi lockfile (#91) #553

Update pixi lockfile (#91)

Update pixi lockfile (#91) #553

Workflow file for this run

name: CI Ubuntu
on:
push:
branches:
- "**"
paths-ignore:
- "**/website/**"
pull_request:
branches:
- "**"
paths-ignore:
- "**/website/**"
jobs:
momentum:
name: momentum-ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up pixi
uses: prefix-dev/[email protected]
with:
cache: true
- name: Build and test Momentum
run: |
pixi run test
- name: Install Momentum and Build hello_world
run: |
pixi run install
pixi run cmake \
-S momentum/examples/hello_world \
-B momentum/examples/hello_world/build \
-DCMAKE_BUILD_TYPE=Release
pixi run cmake --build momentum/examples/hello_world/build
pymomentum:
name: pymomentum-${{ matrix.pixi_env }}-ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- pixi_env: "cpu"
- pixi_env: "gpu"
cuda_version: "12.0.1"
env:
FULL_CUDA_VERSION: ${{ matrix.cuda_version }}
steps:
- name: Maximize build space
if: ${{ contains(matrix.pixi_env, 'cuda') || contains(matrix.pixi_env, 'gpu') }}
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 32768
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-codeql: true
remove-docker-images: true
- name: Checkout
uses: actions/checkout@v4
- name: Install CUDA Toolkit
if: ${{ contains(matrix.pixi_env, 'cuda') || contains(matrix.pixi_env, 'gpu') }}
uses: Jimver/[email protected]
id: cuda-toolkit
with:
# Available versions: https://github.com/Jimver/cuda-toolkit/blob/v0.2.17/src/links/linux-links.ts
cuda: ${{ matrix.cuda_version }}
- name: Check CUDA Version
if: ${{ contains(matrix.pixi_env, 'cuda') || contains(matrix.pixi_env, 'gpu') }}
run: |
nvcc --version
- name: Set Conda environment variables
if: ${{ contains(matrix.pixi_env, 'cuda') || contains(matrix.pixi_env, 'gpu') }}
run: |
echo "CONDA_OVERRIDE_CUDA=$(echo $FULL_CUDA_VERSION | cut -d'.' -f1)" >> $GITHUB_ENV
- name: Set up pixi
uses: prefix-dev/[email protected]
with:
environments: ${{ matrix.pixi_env }}
cache: true
- name: Check pixi environments
run: |
pixi info
- name: Build PyMomentum
run: |
pixi run -e ${{ matrix.pixi_env }} test_pymomentum