Skip to content
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

24.6 #47

Merged
merged 7 commits into from
Jan 2, 2025
Merged

24.6 #47

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
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Build all packages
name: build

on:
push:
branches:
- main
paths:
- src/**

# on: ["push"]
- src/**

jobs:
build:
Expand All @@ -29,22 +27,25 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install magic
run: |
curl -ssL https://magic.modular.com | bash

- 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 -ssL https://magic.modular.com | bash
source $HOME/.bash_profile
magic self-update --version 0.2.3

# 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/latest/download/${RATTLER_BINARY} -o rattler-build
chmod +x rattler-build
export PATH="$PATH:$(pwd)"

# Build and push
magic run build
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ on:
branches:
- nightly
paths:
- src/**

# on: ["push"]
- src/**

jobs:
build:
Expand Down Expand Up @@ -38,13 +36,13 @@ jobs:
run: |
curl -ssL https://magic.modular.com | bash
source $HOME/.bash_profile
magic self-update --version 0.2.3

# 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/latest/download/${RATTLER_BINARY} -o rattler-build
chmod +x rattler-build
export PATH="$PATH:$(pwd)"

# Build and push
magic run -e nightly build -m nightly
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests
name: tests

on:
pull_request:
Expand All @@ -14,7 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-14"] # mac tests just hang for some reason?
os: ["ubuntu-latest"]
# os: ["ubuntu-latest", "macos-14"]

runs-on: ${{ matrix.os }}
timeout-minutes: 5
Expand All @@ -34,6 +35,5 @@ jobs:
- name: Run tests
run: |
source $HOME/.bash_profile
magic self-update --version 0.2.3
magic run tests
bash scripts/examples.sh
magic run examples
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ repos:
language: system
files: '\.(mojo|🔥)$'
stages: [commit]
- id: mojo-docs
name: mojo-docs
entry: python3 ./scripts/check-docstrings.py
language: system
pass_filenames: false
stages: [commit]
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased] - yyyy-mm-dd

## [0.3.0] - 2024-01-02

- Refactored the `Command` API to define everything up front similar to `urfave/cli`.
- This is a big change to how the library works, users should review the examples and readme to see how to use the new API.
- Removed usage of the `FlagSet` struct and moved to functions that operate on `List[Flag]`.

## [0.2.1] - 2024-11-02

- Added environment variable and file path support for flags.
Expand Down
Loading
Loading