mirror of
https://github.com/theryangeary/choose
synced 2024-11-22 19:03:05 +00:00
add mingw build
This commit is contained in:
parent
bcf9798981
commit
f0e13d6861
2 changed files with 19 additions and 0 deletions
2
.cargo/config.toml
Normal file
2
.cargo/config.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[target.x86_64-pc-windows-gnu]
|
||||
linker = "x86_64-w64-mingw32-gcc"
|
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
@ -39,6 +39,12 @@ jobs:
|
|||
rustup target add aarch64-apple-darwin
|
||||
cargo build --verbose --release --target aarch64-apple-darwin
|
||||
|
||||
- name: Build x86_64-pc-windows-gnu
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y mingw-w64
|
||||
rustup target add x86_64-pc-windows-gnu
|
||||
cargo build --verbose --release --target x86_64-pc-windows-gnu
|
||||
|
||||
- name: Create GitHub release
|
||||
id: create-release
|
||||
uses: actions/create-release@v1
|
||||
|
@ -84,5 +90,16 @@ jobs:
|
|||
asset_name: choose-aarch64-apple-darwin
|
||||
asset_content_type: application/raw
|
||||
|
||||
- name: Upload aarch64 binary to GitHub release
|
||||
id: upload-x86_64-pc-windows-gnu-release-asset
|
||||
uses: actions/upload-release-asset@v1.0.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
||||
asset_path: target/x86_64-pc-windows-gnu/release/choose
|
||||
asset_name: choose-x86_64-pc-windows-gnu
|
||||
asset_content_type: application/raw
|
||||
|
||||
- name: Create crates.io release
|
||||
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue