mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
ci: add x86 target
This commit is contained in:
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@@ -52,12 +52,14 @@ jobs:
|
|||||||
- name: Install .Net Coverage
|
- name: Install .Net Coverage
|
||||||
run: dotnet tool install -g dotnet-coverage
|
run: dotnet tool install -g dotnet-coverage
|
||||||
|
|
||||||
- name: Set Windows Feature
|
- name: Set Rust Flags (Windows)
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: Add-Content -Path $env:GITHUB_ENV -Value "EXTRA_RUST_FLAGS=--features windows"
|
run: |
|
||||||
|
rustup target add i686-pc-windows-msvc
|
||||||
|
Add-Content -Path $env:GITHUB_ENV -Value "EXTRA_RUST_FLAGS=--target i686-pc-windows-msvc --features windows"
|
||||||
if: ${{ matrix.os == 'windows-latest' }}
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
|
||||||
- name: Set Linux Target
|
- name: Set Rust Flags (Linux)
|
||||||
run: echo "EXTRA_RUST_FLAGS=--target x86_64-unknown-linux-gnu" >> "$GITHUB_ENV"
|
run: echo "EXTRA_RUST_FLAGS=--target x86_64-unknown-linux-gnu" >> "$GITHUB_ENV"
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
|
||||||
@@ -69,16 +71,21 @@ jobs:
|
|||||||
working-directory: src/Rust
|
working-directory: src/Rust
|
||||||
run: cargo llvm-cov ${{ env.EXTRA_RUST_FLAGS }} --cobertura --output-path ../../test/coverage.rust.${{ matrix.os }}.xml
|
run: cargo llvm-cov ${{ env.EXTRA_RUST_FLAGS }} --cobertura --output-path ../../test/coverage.rust.${{ matrix.os }}.xml
|
||||||
|
|
||||||
- name: Rename OSX Binary
|
- name: Collect Rust Binaries (Windows)
|
||||||
working-directory: src/Rust/target/release
|
working-directory: src/Rust/target
|
||||||
run: cp update UpdateMac
|
run: copy i686-pc-windows-msvc\release\*.exe release
|
||||||
if: ${{ matrix.os == 'macos-latest' }}
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
|
||||||
- name: Rename Linux Binary
|
- name: Collect Rust Binaries (Linux)
|
||||||
working-directory: src/Rust/target
|
working-directory: src/Rust/target
|
||||||
run: cp ./x86_64-unknown-linux-gnu/release/update ./release/UpdateNix
|
run: cp ./x86_64-unknown-linux-gnu/release/update ./release/UpdateNix
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
|
||||||
|
- name: Collect Rust Binaries (OSX)
|
||||||
|
working-directory: src/Rust/target/release
|
||||||
|
run: cp update UpdateMac
|
||||||
|
if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
|
||||||
- name: Build .NET
|
- name: Build .NET
|
||||||
run: dotnet build -c Release
|
run: dotnet build -c Release
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user