name: Build
on:
push:
branches:
- master
jobs:
test:
strategy:
matrix:
os:
runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }}
steps:
- name: Installing needed Ubuntu dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libx11-dev
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Checkout
uses: actions/checkout@v2
- run: cargo build