merge Develop update version to v0.5.7-beta #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
tags: | |
description: 'Test scenario tags' | |
# push: | |
# branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: Build ${{ matrix.target }} | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- x86_64-unknown-linux-musl | |
- x86_64-apple-darwin | |
- x86_64-pc-windows-msvc | |
- i686-pc-windows-msvc | |
- aarch64-pc-windows-msvc | |
include: | |
- target: x86_64-unknown-linux-musl | |
os: ubuntu-latest | |
name: rnacos-x86_64-unknown-linux-musl.tar.gz | |
- target: x86_64-apple-darwin | |
os: macos-latest | |
name: rnacos-x86_64-apple-darwin.tar.gz | |
- target: x86_64-pc-windows-msvc | |
os: windows-latest | |
name: rnacos-x86_64-pc-windows-msvc.zip | |
- target: i686-pc-windows-msvc | |
os: windows-latest | |
name: rnacos-i686-pc-windows-msvc.zip | |
- target: aarch64-pc-windows-msvc | |
os: windows-latest | |
name: rnacos-aarch64-pc-windows-msvc.zip | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Largely inspired by https://github.com/starship/starship/blob/35a0a20f5c4fea6a08e1b91ff631b089eef8fc50/.github/workflows/deploy.yml | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.target }} | |
- name: Install musl tools | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install -y musl-tools | |
# Install gnu-tar because BSD tar is buggy | |
# https://github.com/actions/cache/issues/403 | |
- name: Install GNU tar (macOS) | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install gnu-tar | |
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH | |
- name: Build | |
if: matrix.target != 'x86_64-unknown-linux-musl' | |
run: cargo build | |
- name: Build linux-musl | |
if: matrix.target == 'x86_64-unknown-linux-musl' | |
run: | | |
cargo build --target ${{ matrix.target }} | |