Fix build matrix

next
Sayan Nandan 3 years ago
parent e1bee46cac
commit 60f625196f
No known key found for this signature in database
GPG Key ID: 8BC07A0A4D41DD52

@ -51,6 +51,7 @@ steps:
image: rust image: rust
environment: environment:
ARTIFACT: aarch64-linux-gnu ARTIFACT: aarch64-linux-gnu
VERSION: ${DRONE_TAG}
commands: commands:
- apt-get update && apt-get install zip -y - apt-get update && apt-get install zip -y
- make bundle - make bundle

@ -15,17 +15,26 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] rust:
[
x86_64-unknown-linux-gnu,
x86_64-unknown-linux-musl,
x86_64-apple-darwin,
x86_64-pc-windows-msvc,
]
include: include:
- os: ubuntu-latest - rust: x86_64-unknown-linux-gnu
os: ubuntu-latest
artifact: x86_64-linux-gnu
- rust: x86_64-unknown-linux-musl
os: ubuntu-latest
artifact: x86_64-linux-gnu artifact: x86_64-linux-gnu
rust: x86_64-unknown-linux-gnu - rust: x86_64-apple-darwin
- os: macos-latest os: macos-latest
artifact: x86_64-macos artifact: x86_64-macos
rust: x86_64-apple-darwin - rust: x86_64-pc-windows-msvc
- os: windows-latest os: windows-latest
artifact: x86_64-windows artifact: x86_64-windows
rust: x86_64-pc-windows-msvc
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
TARGET: ${{ matrix.rust }} TARGET: ${{ matrix.rust }}
@ -46,6 +55,10 @@ jobs:
rustup default stable rustup default stable
rustup target add ${{ matrix.rust }} rustup target add ${{ matrix.rust }}
- name: Install MUSL tools
run: sudo apt update && sudo apt install musl-tools -y
if: matrix.rust == 'x86_64-unknown-linux-musl'
- name: Make bundle - name: Make bundle
run: make bundle run: make bundle
@ -74,9 +87,7 @@ jobs:
- os: windows-latest - os: windows-latest
artifact: i686-windows artifact: i686-windows
rust: i686-pc-windows-msvc rust: i686-pc-windows-msvc
- os: ubuntu-latest
rust: x86_64-unknown-linux-musl
artifact: x86_64-linux-musl
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
TARGET: ${{ matrix.rust }} TARGET: ${{ matrix.rust }}
@ -96,9 +107,6 @@ jobs:
run: sudo apt update && sudo apt install gcc-multilib -y run: sudo apt update && sudo apt install gcc-multilib -y
if: runner.os == 'Linux' if: runner.os == 'Linux'
- name: Install MUSL tools
run: sudo apt update && sudo apt install musl-tools -y
if: matrix.rust == 'x86_64-unknown-linux-musl'
- name: Install Rust - name: Install Rust
run: rustup target add ${{ matrix.rust }} run: rustup target add ${{ matrix.rust }}

Loading…
Cancel
Save