|
35 | 35 | - os: windows-latest
|
36 | 36 | arch: AMD64
|
37 | 37 | shell: 'msys2 {0}'
|
| 38 | + - os: ubuntu-24.04-arm |
| 39 | + arch: arm64 |
| 40 | + shell: bash |
38 | 41 | defaults:
|
39 | 42 | run:
|
40 | 43 | shell: ${{ matrix.shell }}
|
|
76 | 79 | with:
|
77 | 80 | name: output-${{ matrix.os }}-${{ matrix.arch }}
|
78 | 81 | path: output/
|
79 |
| - |
80 |
| - build-qemu-stage-1: |
81 |
| - runs-on: ${{ matrix.os }} |
82 |
| - strategy: |
83 |
| - fail-fast: false |
84 |
| - matrix: |
85 |
| - arch: [aarch64] |
86 |
| - os: [ubuntu-latest] |
87 |
| - env: |
88 |
| - stage: 1 |
89 |
| - steps: |
90 |
| - - uses: actions/checkout@v4 |
91 |
| - - uses: actions/setup-python@v5 |
92 |
| - with: |
93 |
| - python-version: "3.13" |
94 |
| - - name: Set up QEMU |
95 |
| - uses: docker/setup-qemu-action@v3 |
96 |
| - - name: Build FFmpeg dependencies |
97 |
| - run: | |
98 |
| - docker run -v $PWD:/project:rw --workdir=/project quay.io/pypa/manylinux2014_${{ matrix.arch }} bash -exc ' |
99 |
| - export PATH=/opt/python/cp39-cp39/bin:$PATH; |
100 |
| - export CIBUILDWHEEL=1; |
101 |
| - python scripts/build-ffmpeg.py /tmp/vendor --enable-gpl --stage ${{ env.stage }}; |
102 |
| - cp -ar /tmp/vendor /project; |
103 |
| - ' |
104 |
| - shell: bash |
105 |
| - - uses: actions/upload-artifact@v4 |
106 |
| - with: |
107 |
| - name: stage-1-${{ matrix.os }}-${{ matrix.arch }} |
108 |
| - path: vendor |
109 |
| - |
110 |
| - build-qemu-stage-2: |
111 |
| - needs: build-qemu-stage-1 |
112 |
| - runs-on: ${{ matrix.os }} |
113 |
| - strategy: |
114 |
| - fail-fast: false |
115 |
| - matrix: |
116 |
| - arch: [aarch64] |
117 |
| - os: [ubuntu-latest] |
118 |
| - env: |
119 |
| - stage: 2 |
120 |
| - steps: |
121 |
| - - uses: actions/checkout@v4 |
122 |
| - - uses: actions/setup-python@v5 |
123 |
| - with: |
124 |
| - python-version: "3.13" |
125 |
| - - name: Set up QEMU |
126 |
| - uses: docker/setup-qemu-action@v3 |
127 |
| - - uses: actions/download-artifact@v4 |
128 |
| - with: |
129 |
| - name: stage-1-${{ matrix.os }}-${{ matrix.arch }} |
130 |
| - path: vendor |
131 |
| - - name: Build FFmpeg |
132 |
| - env: |
133 |
| - CIBW_ARCHS: ${{ matrix.arch }} |
134 |
| - CIBW_BEFORE_ALL_LINUX: | |
135 |
| - yum install -y openssl-devel |
136 |
| - cp -ar vendor /tmp |
137 |
| - CIBW_BEFORE_BUILD: python scripts/build-ffmpeg.py /tmp/vendor --enable-gpl --stage ${{ env.stage }} |
138 |
| - CIBW_BUILD: cp39-* |
139 |
| - CIBW_REPAIR_WHEEL_COMMAND_LINUX: LD_LIBRARY_PATH=/tmp/vendor/lib:$LD_LIBRARY_PATH auditwheel repair -w {dest_dir} {wheel} |
140 |
| - CIBW_SKIP: "*musllinux*" |
141 |
| - CIBW_TEST_COMMAND: python -c "import dummy" |
142 |
| - run: | |
143 |
| - pip install cibuildwheel |
144 |
| - cibuildwheel --output-dir output |
145 |
| - rm -f output/*.whl |
146 |
| - shell: bash |
147 |
| - - name: Upload FFmpeg |
148 |
| - uses: actions/upload-artifact@v4 |
149 |
| - with: |
150 |
| - name: output-${{ matrix.os }}-${{ matrix.arch }} |
151 |
| - path: output/ |
0 commit comments