Bump to version 0.18.0 #67
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: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: "-D warnings" | |
CARGO_INCREMENTAL: 0 | |
CARGO_PROFILE_DEV_DEBUG: 0 | |
CARGO_PROFILE_TEST_DEBUG: 0 | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
toolchain: [stable] | |
build: [linux-amd64, macos, windows] | |
include: | |
- build: linux-amd64 | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
- build: macos | |
os: macos-latest | |
target: x86_64-apple-darwin | |
- build: windows | |
os: windows-latest | |
target: x86_64-pc-windows-msvc | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
target: ${{ matrix.target }} | |
profile: minimal | |
override: true | |
default: true | |
- name: Handle Rust dependencies caching | |
uses: Swatinem/rust-cache@v1 | |
with: | |
key: v3${{ matrix.target }} | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace | |
test-gleam: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
toolchain: [stable] | |
build: [linux-amd64] | |
# build: [linux-amd64, macos, windows] | |
include: | |
- build: linux-amd64 | |
os: ubuntu-latest | |
target: x86_64-unknown-linux-gnu | |
# - build: macos | |
# os: macos-latest | |
# target: x86_64-apple-darwin | |
# - build: windows | |
# os: windows-latest | |
# target: x86_64-pc-windows-msvc | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install OTP and Gleam | |
uses: erlef/setup-beam@v1.16.0 | |
with: | |
otp-version: "25.1" | |
gleam-version: "0.32.4" | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
target: ${{ matrix.target }} | |
profile: minimal | |
override: true | |
default: true | |
- name: Handle Rust dependencies caching | |
uses: Swatinem/rust-cache@v1 | |
with: | |
key: v3${{ matrix.target }} | |
- name: Run | |
uses: actions-rs/cargo@v1 | |
with: | |
command: run | |
- name: Run gleam tests | |
run: gleam test | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: matcha-${{ matrix.target }} | |
path: target/debug/matcha |