Release #100
Workflow file for this run
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
# GENERATED, DO NOT EDIT! | |
# To change, edit `build-support/bin/generate_github_workflows.py` and run: | |
# ./pants run build-support/bin/generate_github_workflows.py | |
jobs: | |
build_wheels_macos11_arm64: | |
env: | |
PANTS_REMOTE_CACHE_READ: "false" | |
PANTS_REMOTE_CACHE_WRITE: "false" | |
if: github.repository_owner == 'pantsbuild' | |
name: Build wheels (macOS11-ARM64) | |
needs: | |
- determine_ref | |
runs-on: | |
- self-hosted | |
- macOS-11-ARM64 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 10 | |
ref: ${{ needs.determine_ref.outputs.build-ref }} | |
- name: Cache Rust toolchain | |
uses: actions/cache@v3 | |
with: | |
key: macOS11-ARM64-rustup-${{ hashFiles('rust-toolchain') }}-v2 | |
path: "~/.rustup/toolchains/1.69.0-* | |
~/.rustup/update-hashes | |
~/.rustup/settings.toml | |
" | |
- name: Cache Cargo | |
uses: benjyw/rust-cache@461b9f8eee66b575bce78977bf649b8b7a8d53f1 | |
with: | |
cache-bin: "false" | |
shared-key: engine | |
workspaces: src/rust/engine | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19.5 | |
- env: | |
ARCHFLAGS: -arch arm64 | |
MODE: DEBUG | |
name: Build wheels | |
run: | | |
python3.9 -c "import venv;venv.create('.venv', with_pip=True, clear=True, symlinks=True)" | |
.venv/bin/pip install wheel setuptools<58 | |
.venv/bin/pip wheel --wheel_dir="dist/deploy/wheels/3rdparty/869d82edb4e304db87757b153b8221460eedfd78/2.6.1+git869d82ed" psutil==5.8.0 PyYAML<5.5,>=5.4 | |
- name: Deploy wheels to S3 | |
run: ./build-support/bin/deploy_to_s3.py | |
timeout-minutes: 90 | |
determine_ref: | |
if: github.repository_owner == 'pantsbuild' | |
name: Create draft release and output info | |
outputs: | |
build-ref: ${{ steps.determine_ref.outputs.build-ref }} | |
is-release: ${{ steps.determine_ref.outputs.is-release }} | |
runs-on: ubuntu-latest | |
steps: | |
- env: | |
REF: ${{ github.event.inputs.ref }} | |
id: determine_ref | |
name: Determine ref to build | |
run: | |
"if [[ -n \"$REF\" ]]; then\n ref=\"$REF\"\nelse\n ref=\"${GITHUB_REF#refs/tags/}\"\ | |
\nfi\necho \"build-ref=${ref}\" >> $GITHUB_OUTPUT\nif [[ \"${ref}\" =~ ^release_.+$\ | |
\ ]]; then\n echo \"is-release=true\" >> $GITHUB_OUTPUT\nfi\n" | |
name: Release | |
"on": | |
push: | |
tags: | |
- release_* | |
workflow_dispatch: | |
inputs: | |
ref: | |
required: true | |
type: string |