Skip to content

Instantly share code, notes, and snippets.

@Blisto91
Created July 24, 2020 12:45
Show Gist options
  • Save Blisto91/321183a740d99949d50f751512666ae8 to your computer and use it in GitHub Desktop.
Save Blisto91/321183a740d99949d50f751512666ae8 to your computer and use it in GitHub Desktop.
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
include:
- os: macos-latest
FEATURES: metal
- os: windows-latest
FEATURES: vulkan
- os: ubuntu-latest
FEATURES: vulkan
steps:
- uses: actions/checkout@v2
- name: install linux deps
run: |
sudo apt update
sudo apt install gcc pkg-config openssl libasound2-dev cmake build-essential python3 libfreetype6-dev libexpat1-dev libxcb-composite0-dev libssl-dev libx11-dev
if: contains(matrix.os, 'ubuntu')
- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
profile: minimal
override: true
- name: Run tests
run: cargo test --features=${{matrix.FEATURES}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment