name: CI
on: [push]
jobs:
test:
name: Install Raylib
runs-on: ubuntu-latest
strategy:
matrix:
version: ["4.0.0"]
toolchain: [stable, beta]
steps:
- name: Git clone raylib
uses: actions/checkout@v2
with:
repository: raysan5/raylib
path: raylib
ref: ${{ matrix.version }}
- name: Install packages
run: sudo apt install -y cmake build-essential libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
- name: Build raylib
run: cd raylib && mkdir build && cd build && cmake -DBUILD_SHARED_LIBS=ON .. && make && sudo make install
- name: Checkout sources
uses: actions/checkout@v2
- name: Install ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test