-
Notifications
You must be signed in to change notification settings - Fork 46
Migrate to pixi #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
saviorand
merged 7 commits into
Lightbug-HQ:main
from
kiatng:docs/readme-grammar-improvements
Nov 30, 2025
Merged
Migrate to pixi #268
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
98bd621
docs: improve README grammar, clarity, and consistency
kiatng a960717
refactor: replace 'magic' with 'pixi' in build and test scripts
kiatng 9c26ef9
docs: Add Magic to Pixi migration plan and remove Magic-specific igno…
kiatng e06f5a4
feat: Migrate CI/CD workflows and Dockerfile from Modular Magic to Pixi.
kiatng 75b667b
Merge upstream/main - resolve conflicts with proper indentation prese…
kiatng f00cf76
Use setup-pixi pinned to 0.59.0 and remove inline pixi installs (keep…
kiatng a695683
Use setup-pixi@main and pixi-version: latest for preview repo
kiatng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,25 @@ | ||
| name: Create package | ||
|
|
||
| on: | ||
| workflow_call: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| package: | ||
| name: Package | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Run the package command | ||
| run: | | ||
| curl -fsSL https://pixi.sh/install.sh | sh | ||
| export PATH="$HOME/.pixi/bin:$PATH" | ||
| pixi run mojo package lightbug_http -o lightbug_http.mojopkg | ||
|
|
||
| - name: Upload package as artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: lightbug_http-package | ||
| path: lightbug_http.mojopkg | ||
| package: | ||
| name: Package | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Pixi | ||
| uses: prefix-dev/setup-pixi@main | ||
| with: | ||
| pixi-version: latest | ||
| cache: true | ||
| - name: Run the package command | ||
| run: | | ||
| pixi run mojo package lightbug_http -o lightbug_http.mojopkg | ||
| - name: Upload package as artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: lightbug_http-package | ||
| path: lightbug_http.mojopkg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,49 @@ | ||
| name: Build and publish | ||
|
|
||
| on: | ||
| workflow_call: | ||
| secrets: | ||
| PREFIX_API_KEY: | ||
| required: true | ||
| workflow_call: | ||
| secrets: | ||
| PREFIX_API_KEY: | ||
| required: true | ||
|
|
||
| jobs: | ||
| publish: | ||
| name: Publish package | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - { target: linux-64, os: ubuntu-latest } | ||
| - { target: osx-arm64, os: macos-14 } | ||
| fail-fast: false | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 5 | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v4 | ||
| publish: | ||
| name: Publish package | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - { target: linux-64, os: ubuntu-latest } | ||
| - { target: osx-arm64, os: macos-14 } | ||
| fail-fast: false | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 5 | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Build package for target platform | ||
| env: | ||
| TARGET_PLATFORM: ${{ matrix.target }} | ||
| PREFIX_API_KEY: ${{ secrets.PREFIX_API_KEY }} | ||
| CONDA_BLD_PATH: ${{ runner.workspace }}/.rattler | ||
| run: | | ||
| curl -fsSL https://pixi.sh/install.sh | sh | ||
| export PATH="$HOME/.pixi/bin:$PATH" | ||
|
|
||
| # Temporary method to fetch the rattler binary. | ||
| RATTLER_BINARY="rattler-build-aarch64-apple-darwin" | ||
| if [[ $TARGET_PLATFORM == "linux-64" ]]; then RATTLER_BINARY="rattler-build-x86_64-unknown-linux-musl"; fi | ||
| curl -SL --progress-bar https://github.com/prefix-dev/rattler-build/releases/download/v0.33.2/${RATTLER_BINARY} -o rattler-build | ||
| chmod +x rattler-build | ||
| - name: Set up Pixi | ||
| uses: prefix-dev/setup-pixi@main | ||
| with: | ||
| pixi-version: latest | ||
| cache: true | ||
|
|
||
| # Build and push | ||
| pixi run build --target-platform=$TARGET_PLATFORM | ||
| pixi run publish | ||
| - name: Build package for target platform | ||
| env: | ||
| TARGET_PLATFORM: ${{ matrix.target }} | ||
| PREFIX_API_KEY: ${{ secrets.PREFIX_API_KEY }} | ||
| CONDA_BLD_PATH: ${{ runner.workspace }}/.rattler | ||
| run: | | ||
| # Temporary method to fetch the rattler binary. | ||
| RATTLER_BINARY="rattler-build-aarch64-apple-darwin" | ||
| if [[ "$TARGET_PLATFORM" == "linux-64" ]]; then | ||
| RATTLER_BINARY="rattler-build-x86_64-unknown-linux-musl" | ||
| fi | ||
| curl -SL --progress-bar "https://github.com/prefix-dev/rattler-build/releases/download/v0.33.2/${RATTLER_BINARY}" -o rattler-build | ||
| chmod +x rattler-build | ||
|
|
||
| # Build and push | ||
| pixi run build --target-platform="$TARGET_PLATFORM" | ||
| pixi run publish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,23 @@ | ||
| name: Run the testing suite | ||
|
|
||
| on: | ||
| workflow_call: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Run tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Run the test suite | ||
| run: | | ||
| curl -fsSL https://pixi.sh/install.sh | sh | ||
| export PATH="$HOME/.pixi/bin:$PATH" | ||
| pixi run test | ||
| pixi run integration_tests_py | ||
| pixi run integration_tests_external | ||
| pixi run integration_tests_udp | ||
| test: | ||
| name: Run tests | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Pixi | ||
| uses: prefix-dev/setup-pixi@main | ||
| with: | ||
| pixi-version: latest | ||
| cache: true | ||
| - name: Run the test suite | ||
| run: | | ||
| pixi run test | ||
| pixi run integration_tests_py | ||
| pixi run integration_tests_external | ||
| pixi run integration_tests_udp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,9 +8,6 @@ install_id | |
| .pixi | ||
| *.egg-info | ||
|
|
||
| # magic environments | ||
| .magic | ||
|
|
||
| # Rattler | ||
| output | ||
|
|
||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.