Skip to content

Commit

Permalink
add build step
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcp committed Dec 8, 2024
1 parent 563ba4e commit abf2688
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build plm-local

# 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 . \
--skip-existing=all --target-platform=${{ matrix.target }} \
-c conda-forge -c https://prefix.dev/protein-language-models
- 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 protein-language-models "$file"
done

0 comments on commit abf2688

Please sign in to comment.