Linux CI #36
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: Linux CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
schedule: | |
- cron: "0 6 * * 6" | |
jobs: | |
build-ubuntu: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { os: ubuntu-latest, crystal: latest } | |
- { os: ubuntu-latest, crystal: nightly } | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: ${{matrix.crystal}} | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev | |
- name: Install crystal land dependencies | |
run: shards install | |
- name: Compile library | |
run: make | |
- name: Run tests | |
run: crystal spec |