Skip to content

Add credit to changelog #78

Add credit to changelog

Add credit to changelog #78

Workflow file for this run

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
with:
otp-version: "27.1"
gleam-version: "1.6.1"
- 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@v4
with:
name: matcha-${{ matrix.target }}
path: target/debug/matcha