Skip to content

Rustify

Rustify #98

Workflow file for this run

name: Build
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
release:
types: [published]
workflow_call:
jobs:
# ---------------------------------------------------------------------------
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch:
#- aarch64-apple-darwin
#- aarch64-unknown-linux-gnu
#- aarch64-unknown-linux-musl
#- x86_64-apple-darwin
#- x86_64-pc-windows-gnu
- x86_64-unknown-linux-gnu
#- x86_64-unknown-linux-musl
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
- name: build
run: |
cargo build --release --all-features --target ${{ matrix.arch }}
- name: compress with upx
uses: crazy-max/ghaction-upx@v3
with:
version: v4.1.0
files: |
target/${{ matrix.arch }}/release/rebar
args: --best --lzma
- name: upload binary
uses: actions/upload-artifact@v3
with:
name: rebar-${{ matrix.arch }}
path: target/${{ matrix.arch }}/release/rebar