lapce/.github/workflows/ci.yml

37 lines
834 B
YAML
Raw Normal View History

on:
push:
branches:
- master
name: CI
jobs:
build:
name: Rust (${{ matrix.toolchain }}) on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
toolchain: [ stable ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies on Ubuntu
if: startsWith(matrix.os, 'ubuntu')
2022-05-18 20:38:56 +00:00
run: sudo apt-get update && sudo apt-get install cmake pkg-config libgtk-3-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
- uses: actions-rs/cargo@v1
with:
2022-04-03 19:44:31 +00:00
command: build
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace