Skip to content

Update compile.yml

Update compile.yml #85

Workflow file for this run

name: Compile
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
filename: 'beans-rs'
target: x86_64-unknown-linux-musl
- os: windows-latest
target: x86_64-pc-windows-msvc
filename: 'beans-rs.exe'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-05-24
target: ${{ matrix.target }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all-features --target ${{ matrix.target }}
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.os }}-${{ matrix.target }}
path: target/debug/${{ matrix.filename }}