An open API service indexing awesome lists of open source software.

https://github.com/fabasoad/setup-mojo-action

This action installs MAX and Mojo
https://github.com/fabasoad/setup-mojo-action

Last synced: about 1 year ago
JSON representation

This action installs MAX and Mojo

Awesome Lists containing this project

README

          

# Setup Mojo

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
![GitHub release](https://img.shields.io/github/v/release/fabasoad/setup-mojo-action?include_prereleases)
![functional-tests](https://github.com/fabasoad/setup-mojo-action/actions/workflows/functional-tests.yml/badge.svg)
![security](https://github.com/fabasoad/setup-mojo-action/actions/workflows/security.yml/badge.svg)
![linting](https://github.com/fabasoad/setup-mojo-action/actions/workflows/linting.yml/badge.svg)

This action sets up a [pixi](https://pixi.sh/latest/) CLI. Using it you can
create a [mojo](https://docs.modular.com/mojo/manual/) project.

## Supported OS

| OS | |
|---------|--------------------|
| Windows | :x: |
| Linux | :white_check_mark: |
| macOS | :white_check_mark: |

## Inputs

```yaml
- uses: fabasoad/setup-mojo-action@v3
with:
# (Optional) If "true" it installs pixi even if it is already installed on
# a runner. Otherwise, skips installation. Defaults to "false".
force: "false"
```

## Outputs

| Name | Description | Example |
|-----------|-----------------------------------|---------|
| installed | Whether pixi was installed or not | `true` |

## Example usage

```yaml
name: Setup Mojo

on: push

jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fabasoad/setup-mojo-action@v3
- name: Get Mojo version
run: |
pixi add modular
pixi run mojo --version
```