Release v1.0.0 #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'release-[0-9]+.[0-9]+' | |
- 'ci/*' | |
jobs: | |
build: | |
name: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04, windows-2022 ] | |
include: | |
- os: ubuntu-22.04 | |
target: x86_64-unknown-linux-musl | |
- os: windows-2022 | |
target: x86_64-pc-windows-msvc | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Cache Cargo | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | |
- if: matrix.os == 'ubuntu-22.04' | |
name: Install MUSL toolchain | |
run: | | |
sudo apt update | |
sudo apt install -y musl-tools | |
rustup target add x86_64-unknown-linux-musl | |
- name: Build ${{ github.repository }} | |
run: cargo build --target ${{ matrix.target }} | |
- name: Run unit tests | |
run: cargo test --target ${{ matrix.target }} |