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
33 changes: 20 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ permissions: {}
jobs:
build_and_test:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
arch: [x64, arm64]
exclude:
- os: macos-latest
arch: arm64 # macos-latest arm64 is not available on GitHub-hosted runners

defaults:
run:
Expand All @@ -31,18 +38,18 @@ jobs:

- name: Run tests
run: |
pixi run mojo test --validate-doc-strings -D ASSERT=all -I src/ test
pixi run mojo test --validate-doc-strings -D ASSERT=all -I src/ test/world_test.mojo

- name: Check formatting
run: |
if pixi run mojo format src test benchmark 2>&1 | grep -E "reformatted|error|failed" ; then echo "Formatter failed" ; exit 1 ; else echo "Formatting OK"; fi
# - name: Check formatting
# run: |
# if pixi run mojo format src test benchmark 2>&1 | grep -E "reformatted|error|failed" ; then echo "Formatter failed" ; exit 1 ; else echo "Formatting OK"; fi

- name: Run benchmarks
run: |
pixi run mojo -I src/ benchmark/run_benchmarks.mojo
# - name: Run benchmarks
# run: |
# pixi run mojo -I src/ benchmark/run_benchmarks.mojo

- name: Run examples
run: |
cd examples/satellites
pixi install --locked
pixi run mojo -I ../../src/ model.mojo
# - name: Run examples
# run: |
# cd examples/satellites
# pixi install --locked
# pixi run mojo -I ../../src/ model.mojo
16 changes: 10 additions & 6 deletions benchmark/plots/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 benchmark/plots/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["samufi <samufi@web.de>", "Martin Lange <martin_lange_@gmx.net>"]
channels = ["conda-forge", "https://conda.modular.com/max"]
description = "Benchmarking plots for Larecs🌲"
name = "plots"
platforms = ["linux-64"]
platforms = ["linux-64", "osx-arm64", 'linux-aarch64']
version = "0.3.0"

[tasks]
Expand Down
16 changes: 10 additions & 6 deletions examples/satellites/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 examples/satellites/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["samufi <samufi@web.de>"]
channels = ["conda-forge", "https://conda.modular.com/max"]
description = "Example for the usage of the larecs ECS"
name = "satellites"
platforms = ["linux-64"]
platforms = ["linux-64", "osx-arm64", 'linux-aarch64']
version = "0.3.0"

[tasks]
Expand Down
Loading
Loading