Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Run tests
run: |
scripts/run_tests.sh test
pixi run scripts/run_tests.sh test

- name: Check formatting
run: |
Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pixi CLI
run: |
curl -ssL https://pixi.sh/install.sh | bash

- name: Build package
run: |
pixi run mojo package src/larecs

- name: Test package
run: |
scripts/run_tests.sh test

- name: Upload package
if: ${{ github.event_name == 'release' }}
uses: svenstaro/upload-release-action@v2
- name: Build conda package
uses: prefix-dev/rattler-build-action@v0.2.37
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: larecs.mojopkg
asset_name: larecs.mojopkg
tag: ${{ github.ref }}
build-args: --channel conda-forge --channel https://repo.prefix.dev/max-nightly
51 changes: 51 additions & 0 deletions conda.recipe/recipe-latest-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
context:
version: "0.5.0"

package:
name: "larecs"
version: ${{ version }}

source:
- git: https://github.com/samufi/larecs.git
rev: 3ee51b8c4975ea408c20931fbaf3c7220a8b7983

build:
number: 0
script:
- mojo package src/larecs -o ${{ PREFIX }}/lib/mojo/larecs.mojopkg

requirements:
build:
- mojo-compiler >=0.26.2,<1.0.0
host:
- mojo-compiler >=0.26.2,<1.0.0
run:
- ${{ pin_compatible('mojo-compiler') }}

tests:
- script:
- if: unix
then:
- scripts/run_tests.sh test
requirements:
run:
- ${{ pin_compatible('mojo-compiler') }}
files:
source:
- scripts/
- test/
- pixi.toml

about:
homepage: https://samufi.github.io/larecs/
license: LGPL-3.0-only
license_file: LICENSE
summary: A performance-oriented archetype-based ECS for Mojo🔥.
repository: https://github.com/samufi/larecs

extra:
maintainers:
- samufi
- mlange-42
- moseschmiedel
project_name: Larecs🌲
22 changes: 13 additions & 9 deletions src/recipe.yaml → conda.recipe/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
context:
version: "0.1.0"
max_requirement: "max = 25.3.0.dev2025040705"
version: "0.5.0"

package:
name: "larecs"
version: ${{ version }}

source:
- git: https://github.com/samufi/larecs.git
rev: v0.1.0
path: ../

build:
number: 0
script:
- mojo package src/larecs -o ${{ PREFIX }}/lib/mojo/larecs.mojopkg

requirements:
build:
- mojo-compiler >=0.26.2,<1.0.0
host:
- ${{ max_requirement }}
- mojo-compiler >=0.26.2,<1.0.0
run:
- ${{ pin_compatible('max') }}
- ${{ pin_compatible('mojo-compiler') }}

tests:
- script:
- if: unix
then:
- mojo test --sanitize address -D ASSERT=all test
- scripts/run_tests.sh test
requirements:
run:
- ${{ max_requirement }}
- ${{ pin_compatible('mojo-compiler') }}
files:
source:
test/
- scripts/
- test/
- pixi.toml

about:
homepage: https://samufi.github.io/larecs/
Expand All @@ -43,4 +46,5 @@ extra:
maintainers:
- samufi
- mlange-42
- moseschmiedel
project_name: Larecs🌲
15 changes: 14 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,22 @@ channels = ["conda-forge", "https://repo.prefix.dev/max-nightly"]
description = "Larecs🌲 is a performance-oriented archetype-based ECS for Mojo🔥."
name = "larecs"
platforms = ["linux-64", "osx-arm64"]
version = "0.4.0"
version = "0.5.0"
preview = ["pixi-build"]

[tasks]

[dependencies]
mojo = ">=0.26.2, <1.0.0"

[package]
name = {workspace = true}
version = {workspace = true}

[package.build.backend]
name = "pixi-build-rattler-build"
version = "*"
channels = ["conda-forge", "https://repo.prefix.dev/max-nightly"]

[package.build.config]
recipe = "conda.recipe/recipe.yaml"
92 changes: 46 additions & 46 deletions scripts/pixi.lock

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

2 changes: 1 addition & 1 deletion scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ failed_tests=()
echo "### ------------------------------------------------------------- ###"
while IFS= read -r test_file; do
echo "Running test: $test_file"
if ! pixi run mojo --Werror -D ASSERT=all -I src "$test_file" ; then
if ! mojo --Werror -D ASSERT=all -I src "$test_file" ; then
failed_tests+=("$test_file")
fi
echo "### ------------------------------------------------------------- ###"
Expand Down
Loading