forked from bazelbuild/rules_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile_pyo3_dev_requirements.yaml
More file actions
58 lines (54 loc) · 1.81 KB
/
compile_pyo3_dev_requirements.yaml
File metadata and controls
58 lines (54 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: compile_pyo3_dev_requirements
on:
workflow_dispatch:
inputs:
target:
description: "The py_reqs_compiler target to run"
default: "//tools/requirements:update"
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: linux_x86_64
runs-on: ubuntu-latest
- os: linux_aarch64
runs-on: ubuntu-24.04-arm
- os: macos_aarch64
runs-on: macos-latest
- os: windows_x86_64
runs-on: windows-latest
runs-on: ${{ matrix.runs-on }}
defaults:
run:
working-directory: ./extensions/pyo3
name: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Compile requirements
if: runner.os == 'Windows'
run: |
bazel run "$env:TARGET" "--" "--upgrade" "--verbose"
env:
TARGET: ${{ github.event.inputs.target }}
- name: Compile requirements
if: runner.os != 'Windows'
run: |
bazel run "${TARGET}" "--" "--upgrade" "--verbose"
env:
TARGET: ${{ github.event.inputs.target }}
- name: Display results
shell: bash
run: |
set -e
echo "<details>" >> "${GITHUB_STEP_SUMMARY}"
echo "" >> "${GITHUB_STEP_SUMMARY}"
echo '```' >> "${GITHUB_STEP_SUMMARY}"
cat "tools/requirements/requirements_${{ matrix.os }}.txt" >> "${GITHUB_STEP_SUMMARY}"
echo '```' >> "${GITHUB_STEP_SUMMARY}"
echo "" >> "${GITHUB_STEP_SUMMARY}"
echo "</details>" >> "${GITHUB_STEP_SUMMARY}"