Skip to content

Update README.md

Update README.md #45

Workflow file for this run

on: [push, pull_request]
name: Mean Bean Build
env:
BIN: uniqx
jobs:
macos:
runs-on: macos-latest
strategy:
matrix:
target:
- x86_64-apple-darwin
- aarch64-apple-darwin
steps:
- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Setup | Checkout
uses: actions/checkout@v2
# Cache files between builds
- name: Setup | Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.target }}
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
target: ${{ matrix.target }}
- name: Build | Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}
linux:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- i686-unknown-linux-gnu
- x86_64-unknown-linux-gnu
- i686-unknown-linux-musl
- x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v2
- uses: XAMPPRocky/get-github-release@v1
id: cross
with:
owner: rust-embedded
repo: cross
matches: linux-musl
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- run: rustup default stable
- run: rustup target add ${{ matrix.target }}
- run: ${{ steps.cross.outputs.install_path }} build --release --target ${{ matrix.target }}
windows:
runs-on: windows-latest
strategy:
matrix:
target:
- i686-pc-windows-msvc
- x86_64-pc-windows-msvc
steps:
- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v2
- run: rustup default stable
- run: rustup target add ${{ matrix.target }}
- run: cargo build --release --target ${{ matrix.target }}