|
20 | 20 | outputs:
|
21 | 21 | version: ${{ steps.version.outputs.version }}
|
22 | 22 | steps:
|
| 23 | + - name: Set Apix Bot token |
| 24 | + id: app-token |
| 25 | + uses: mongodb/apix-action/token@6c3fde402c21942fa46cde003f190c2b23c59530 |
| 26 | + with: |
| 27 | + app-id: ${{ secrets.APIXBOT_APP_ID }} |
| 28 | + private-key: ${{ secrets.APIXBOT_APP_PEM }} |
23 | 29 | - uses: actions/checkout@v5
|
24 | 30 | with:
|
25 | 31 | token: ${{ secrets.GITHUB_TOKEN }}
|
|
60 | 66 | run: yarn build --target x86_64-unknown-linux-gnu --use-napi-cross
|
61 | 67 | - name: Commit version changes
|
62 | 68 | run: |
|
63 |
| - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" |
64 |
| - git config --local user.name "github-actions[bot]" |
| 69 | + git config --global user.name "${{ steps.app-token.outputs.user-name }}" |
| 70 | + git config --global user.email "${{ steps.app-token.outputs.user-email }}" |
65 | 71 | git add package.json Cargo.toml index.js index.d.ts CHANGELOG.md LICENSE-3RD-PARTY.txt
|
66 | 72 | git commit -m "${{ github.event.inputs.version }}"
|
67 | 73 | git push
|
@@ -117,6 +123,21 @@ jobs:
|
117 | 123 | .cargo-cache
|
118 | 124 | target/
|
119 | 125 | key: ${{ matrix.settings.target }}-cargo-${{ matrix.settings.host }}
|
| 126 | + - uses: mlugg/setup-zig@v2 |
| 127 | + if: ${{ contains(matrix.settings.target, 'musl') }} |
| 128 | + with: |
| 129 | + version: 0.14.1 |
| 130 | + - name: Install cargo-zigbuild |
| 131 | + uses: taiki-e/install-action@v2 |
| 132 | + if: ${{ contains(matrix.settings.target, 'musl') }} |
| 133 | + env: |
| 134 | + GITHUB_TOKEN: ${{ github.token }} |
| 135 | + with: |
| 136 | + tool: cargo-zigbuild |
| 137 | + - name: Setup toolchain |
| 138 | + run: ${{ matrix.settings.setup }} |
| 139 | + if: ${{ matrix.settings.setup }} |
| 140 | + shell: bash |
120 | 141 | - name: Install dependencies
|
121 | 142 | run: yarn install
|
122 | 143 | - name: Build
|
|
0 commit comments