Skip to content

feat: add automatic releases #37

feat: add automatic releases

feat: add automatic releases #37

Workflow file for this run

name: Test
env:
PROJECT_NAME: swiss-qr-bill-decoder
CARGO_TERM_COLOR: always
on:
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ${{ matrix.platform.runner }}
strategy:
fail-fast: false
matrix:
platform:
- target: aarch64-apple-darwin
runner: ubuntu-latest
- target: aarch64-unknown-linux-gnu
runner: ubuntu-latest
- target: aarch64-unknown-linux-musl
runner: ubuntu-latest
- target: i686-unknown-linux-gnu
runner: ubuntu-latest
- target: i686-unknown-linux-musl
runner: ubuntu-latest
- target: x86_64-apple-darwin
runner: ubuntu-latest
- target: x86_64-unknown-linux-gnu
runner: ubuntu-latest
- target: x86_64-unknown-linux-musl
runner: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "${{ matrix.platform.target }}"
- name: Rust (Cargo) Caching
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --locked --target ${{ matrix.platform.target }}
- name: Run tests
run: cargo test --locked --target ${{ matrix.platform.target }}