Initial commit with example #4
This file contains hidden or 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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup just | |
uses: extractions/setup-just@v3 | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v6 | |
- name: Download actionlint | |
shell: bash | |
run: | | |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
pwd >> "$GITHUB_PATH" | |
- name: Build all wheels | |
run: | | |
just build-all-wheels | |
- name: Build foo | |
run: | | |
just build-pex foo foo.__init__ | |
- name: Build uvicorn server | |
run: |- | |
just build-uvicorn-pex uvicorn-server uvicorn_server.main:app native eager |