|
30 | 30 | - name: Run style checks |
31 | 31 | run: pipx run pre-commit run --all-files |
32 | 32 |
|
33 | | - check_commit_message: |
34 | | - needs: [style] |
35 | | - name: Check commit message |
36 | | - runs-on: ubuntu-latest |
37 | | - outputs: |
38 | | - trigger: ${{ steps.check-commit-message.outputs.trigger }} |
39 | | - steps: |
40 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
41 | | - - name: Check commit message |
42 | | - id: check-commit-message |
43 | | - run: | |
44 | | - set -e -x |
45 | | - COMMIT_MESSAGE=$(git log --no-merges -1 --oneline) |
46 | | - if [[ "$GITHUB_EVENT_NAME" == pull_request && |
47 | | - "$COMMIT_MSG" =~ \[buildjet\] ]]; then |
48 | | - echo "trigger=true" >> "$GITHUB_OUTPUT" |
49 | | - fi |
50 | | - - name: Run BuildJet runners |
51 | | - if: steps.check-commit-message.outputs.trigger == 'true' |
52 | | - run: echo "Running BuildJet runners" |
53 | | - |
54 | 33 | build_wheels: |
55 | 34 | needs: [style] |
56 | 35 | name: ${{ matrix.runs-on }}-python-${{ matrix.python-version }} |
|
59 | 38 | fail-fast: false |
60 | 39 | matrix: |
61 | 40 | python-version: ["3.9", "3.12", "3.13"] |
62 | | - runs-on: [ubuntu-latest, macos-13, macos-14, windows-latest] |
| 41 | + runs-on: |
| 42 | + [ubuntu-latest, ubuntu-22.04-arm, macos-13, macos-14, windows-latest] |
63 | 43 | steps: |
64 | 44 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
65 | 45 | - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 |
|
95 | 75 | - name: Test entry points for package |
96 | 76 | run: nox -s venv |
97 | 77 |
|
98 | | - build_wheels_linux_aarch64: |
99 | | - needs: [check_commit_message] |
100 | | - name: linux-aarch64-buildjet-python-3.12 |
101 | | - runs-on: buildjet-2vcpu-ubuntu-2204-arm |
102 | | - if: ${{ needs.check_commit_message.outputs.trigger == 'true' }} |
103 | | - steps: |
104 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
105 | | - - uses: buildjet/setup-python@v5.2.0 |
106 | | - - uses: buildjet/setup-go@af85c03c2736c2267d5afe4d5952023a3b64bf89 # v5.0.0 |
107 | | - with: |
108 | | - go-version: "1.23.4" |
109 | | - cache: false |
110 | | - check-latest: true |
111 | | - |
112 | | - - name: Build binary distribution (wheel) on Linux (aarch64) |
113 | | - run: | |
114 | | - python -m pip install cibuildwheel |
115 | | - python -m cibuildwheel --output-dir wheelhouse |
116 | | - env: |
117 | | - CIBW_BUILD: "cp312-*" |
118 | | - CIBW_ARCHS_LINUX: aarch64 |
119 | | - CIBW_BEFORE_ALL_LINUX: | |
120 | | - tarball="go1.23.4.linux-arm64.tar.gz" |
121 | | - curl -LJO https://golang.org/dl/$tarball |
122 | | - mkdir $HOME/go_installed/ |
123 | | - tar -C $HOME/go_installed/ -xzf $tarball |
124 | | - export PATH=$PATH:$HOME/go_installed/go/bin >> ~/.bashrc |
125 | | - export PATH=$PATH:$HOME/go_installed/go/bin >> ~/.bash_profile |
126 | | - go version |
127 | | - CIBW_ENVIRONMENT_LINUX: PATH=$PATH:$HOME/go_installed/go/bin |
128 | | - CIBW_TEST_COMMAND: | |
129 | | - hugo version |
130 | | - hugo env --logLevel debug |
131 | | -
|
| 78 | + # TODO: add aarch64 to x86_64 cross-compilation for Linux |
132 | 79 | experimental: |
133 | 80 | needs: [style] |
134 | 81 | name: zig-${{ matrix.runs-on }}-${{ matrix.architecture }}-python-${{ matrix.python-version }} |
|
0 commit comments