|
30 | 30 | rustup target add x86_64-unknown-linux-musl
|
31 | 31 | cargo build --verbose --release --target x86_64-unknown-linux-musl
|
32 | 32 |
|
| 33 | + - name: Build aarch64-unknown-linux-gnu |
| 34 | + run: | |
| 35 | + sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu |
| 36 | + rustup target add aarch64-unknown-linux-gnu |
| 37 | + cargo build --verbose --release --target aarch64-unknown-linux-gnu |
| 38 | +
|
33 | 39 | - name: Build aarch64-apple-darwin
|
34 | 40 | run: |
|
35 | 41 | curl -L https://github.com/roblabla/MacOSX-SDKs/releases/download/13.3/MacOSX13.3.sdk.tar.xz | tar xJ
|
|
79 | 85 | asset_name: choose-x86_64-unknown-linux-musl
|
80 | 86 | asset_content_type: application/raw
|
81 | 87 |
|
82 |
| - - name: Upload aarch64 binary to GitHub release |
| 88 | + - name: Upload aarch64 linux binary to GitHub release |
| 89 | + id: upload-aarch64-unknown-linux-gnu-release-asset |
| 90 | + uses: actions/upload-release-asset@v1.0.1 |
| 91 | + env: |
| 92 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 93 | + with: |
| 94 | + upload_url: ${{ steps.create-release.outputs.upload_url }} |
| 95 | + asset_path: target/aarch64-unknown-linux-gnu/release/choose |
| 96 | + asset_name: choose-aarch64-unknown-linux-gnu |
| 97 | + asset_content_type: application/raw |
| 98 | + |
| 99 | + - name: Upload aarch64 darwin binary to GitHub release |
83 | 100 | id: upload-aarch64-apple-darwin-release-asset
|
84 | 101 | uses: actions/upload-release-asset@v1.0.1
|
85 | 102 | env:
|
|
90 | 107 | asset_name: choose-aarch64-apple-darwin
|
91 | 108 | asset_content_type: application/raw
|
92 | 109 |
|
93 |
| - - name: Upload aarch64 binary to GitHub release |
| 110 | + - name: Upload mingw binary to GitHub release |
94 | 111 | id: upload-x86_64-pc-windows-gnu-release-asset
|
95 | 112 | uses: actions/upload-release-asset@v1.0.1
|
96 | 113 | env:
|
|
0 commit comments