Skip to content

add a readme

add a readme #6

Workflow file for this run

name: Build all packages
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
include:
- { target: linux-64, os: ubuntu-20.04 }
# - { target: win-64, os: windows-latest }
- { target: osx-64, os: macos-latest }
- { target: osx-arm64, os: macos-14 }
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.18.0
cache: true
manifest-path: recipes/pixi.toml
- name: Add .pixi/envs/default to the $PATH
shell: bash
run: |
echo "$(pwd)/recipes/.pixi/envs/default/bin" >> $GITHUB_PATH
- name: Run code in changed subdirectories
shell: bash
env:
TARGET_PLATFORM: ${{ matrix.target }}
run: |
rattler-build build --recipe-dir ./recipes/whisper-cpp/ \
--skip-existing=all --target-platform=$TARGET_PLATFORM \
-c conda-forge -c https://prefix.dev/ai-forge \
-m ./recipes/variant_config.yaml
- name: Upload all packages
shell: bash
# do not upload on PR
if: github.event_name == 'push'
env:
PREFIX_API_KEY: ${{ secrets.PREFIX_API_KEY }}
run: |
# ignore errors because we want to ignore duplicate packages
for file in output/**/*.conda; do
rattler-build upload prefix -c ai-forge "$file" || true
done