Skip to content

Cleanup

Cleanup #18

Workflow file for this run

name: Push actions
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Run tests for ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-musl
- armv7-unknown-linux-musleabihf
steps:
- uses: actions/checkout@v4
- uses: cargo-bins/cargo-binstall@main
- name: Install cross-rs
run: cargo binstall cross
- name: Build debug binary
run: cross build --target=${{ matrix.target }} --verbose
- name: Run tests
run: cross test --target=${{ matrix.target }} --verbose
- name: Build release binary
run: cross build --release --target=${{ matrix.target }} --verbose
- name: Upload debug binary
if: always()
uses: actions/upload-artifact@v4
with:
name: flow-debug-${{ matrix.target }}
path: target/${{ matrix.target }}/debug/flow
- name: Upload release binary
uses: actions/upload-artifact@v4
with:
name: flow-release-${{ matrix.target }}
path: target/${{ matrix.target }}/release/flow