|
26 | 26 | target: [x86_64, aarch64] |
27 | 27 | steps: |
28 | 28 | - uses: actions/checkout@v3 |
29 | | - - name: Install Protoc |
30 | | - uses: arduino/setup-protoc@v1 |
31 | | - if: matrix.target == 'aarch64' |
32 | | - with: |
33 | | - version: '3.x' |
34 | | - repo-token: ${{ secrets.GITHUB_TOKEN }} |
35 | 29 | - uses: actions/setup-python@v4 |
36 | 30 | with: |
37 | 31 | python-version: '3.10' |
|
43 | 37 | args: --release --out dist |
44 | 38 | sccache: 'true' |
45 | 39 | manylinux: '2_17' |
46 | | - before-script-linux: > |
47 | | - DOWNLOAD_URL=$(curl --retry 6 --retry-delay 10 -s https://api.github.com/repos/protocolbuffers/protobuf/releases/latest | grep -o '"browser_download_url": "[^"]*' | cut -d'"' -f4 | grep "\linux-x86_64.zip$") && |
48 | | - curl --retry 6 --retry-delay 10 -LO $DOWNLOAD_URL && |
49 | | - unzip protoc-*-linux-x86_64.zip -d $HOME/.local |
50 | | - docker-options: --env PROTOC=/root/.local/bin/protoc |
51 | 40 | - name: Build wheels for aarch64 |
52 | 41 | if: matrix.target == 'aarch64' |
53 | 42 | uses: PyO3/maturin-action@v1 |
|
79 | 68 | runs-on: windows-latest |
80 | 69 | steps: |
81 | 70 | - uses: actions/checkout@v3 |
82 | | - - name: Install Protoc |
83 | | - uses: arduino/setup-protoc@v1 |
84 | | - with: |
85 | | - version: '3.x' |
86 | | - repo-token: ${{ secrets.GITHUB_TOKEN }} |
87 | 71 | - uses: actions/setup-python@v4 |
88 | 72 | with: |
89 | 73 | python-version: '3.10' |
@@ -121,11 +105,6 @@ jobs: |
121 | 105 | target: [x86_64, aarch64] |
122 | 106 | steps: |
123 | 107 | - uses: actions/checkout@v3 |
124 | | - - name: Install Protoc |
125 | | - uses: arduino/setup-protoc@v1 |
126 | | - with: |
127 | | - version: '3.x' |
128 | | - repo-token: ${{ secrets.GITHUB_TOKEN }} |
129 | 108 | - uses: actions/setup-python@v4 |
130 | 109 | with: |
131 | 110 | python-version: '3.10' |
|
0 commit comments