Skip to content

build

build #3

Workflow file for this run

name: build
on: [workflow_dispatch, workflow_call]
jobs:
build-sdist:
name: Build sdist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Optional, use if you use setuptools_scm
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Build
run: |
# add packages that are supposed to be built to this list
for package in fairchem-core fairchem-data-oc fairchem-demo-ocpapi
do
pushd packages/$package
hatch build
popd
done
- uses: actions/upload-artifact@v4
with:
path: dist/*