Skip to content

Added MIT license (#71) #399

Added MIT license (#71)

Added MIT license (#71) #399

Workflow file for this run

name: Test
on:
release:
types: [created]
push:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup toolchain install stable --component llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
- name: Check bins
run: cargo build --features="build-binary"
- name: Generate code coverage
run: cargo llvm-cov --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
build-and-publish-binaries:
permissions: write-all
name: Publish binaries (${{ matrix.target }})
needs: [test]
if: github.event_name == 'release'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
#
#- target: x86_64-apple-darwin
# archive: zip
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Compile and release
uses: rust-build/rust-build.action@v1.4.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
EXTRA_COMMAND_FLAGS: --features=build-binary
TOOLCHAIN_VERSION: 1.74.0
MINIFY: true