Update README: Added basic instructions for running projects on unix … #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Crystal CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: crystallang/crystal | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Gosu dependencies | |
run: | | |
apt-get update -y -qq | |
apt-get install -y build-essential libsdl2-dev libgl1-mesa-dev libgmp-dev libfontconfig1-dev cmake xvfb pulseaudio | |
- name: Install Gosu | |
run: | | |
echo $PWD | |
cd .. | |
git clone --depth=1 --single-branch --branch master https://github.com/gosu/gosu | |
cd gosu | |
mkdir -p build | |
cd build | |
cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr .. | |
make | |
make install | |
- name: Install dependencies | |
run: shards install | |
- name: Run tests | |
run: | | |
xvfb-run crystal spec | |
crystal tool format --check |