add serial-monitor-rust #44
This file contains 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
name: Build all packages | |
# this is important for trusted publishing | |
permissions: | |
id-token: write | |
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 } | |
# force older macos-13 to get x86_64 runners | |
- { target: osx-64, os: macos-13 } | |
- { target: osx-arm64, os: macos-14 } | |
fail-fast: false | |
name: ${{ matrix.target }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: prefix-dev/[email protected] | |
with: | |
pixi-version: v0.39.0 | |
- name: Add .pixi/envs/default/bin to the $PATH | |
shell: bash | |
run: | | |
echo "$(pwd)/.pixi/envs/default/bin" >> $GITHUB_PATH | |
- name: Run code in changed subdirectories | |
shell: bash | |
run: | | |
rattler-build build --recipe-dir ./recipes \ | |
--skip-existing=all --target-platform=${{ matrix.target }} \ | |
-c https://prefix.dev/prefix-package-incubator -c conda-forge | |
- name: Upload all packages | |
shell: bash | |
# do not upload on PR | |
if: github.event_name == 'push' | |
run: | | |
# uses trusted publishers for the upload | |
for file in output/**/*.conda; do | |
rattler-build upload prefix -c prefix-package-incubator "$file" | |
done |