Update main.yml

This commit is contained in:
Alexandr Bogomyakov
2024-07-08 18:52:22 +03:00
committed by GitHub
parent 40a142e9c5
commit 41cc5a7bb1

View File

@ -36,7 +36,13 @@ jobs:
run: choco install -y mingw
- name: Install rust targets
run: rustup target add ${{ matrix.build_target }}
- name: Build
- name: Build linux MUSL
if: matrix.os == 'ubuntu-latest'
uses: gmiam/rust-musl-action@master
with:
args: cargo build --target $BUILD_TARGET --release
- name: Build MacOS and Windows
if: matrix.os != 'ubuntu-latest'
run: cargo build --target ${{ matrix.build_target }} --release
- name: Strip binary on Linux and macOS
if: matrix.os != 'windows-latest'