Add github actions CI files (#12) #7
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
on: [push] | ||
name: Cargo Test | ||
jobs: | ||
test: | ||
name: Cargo Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- name: Install packages (Linux) | ||
#TODO(emilk) use upstream when https://github.com/awalsh128/cache-apt-pkgs-action/pull/90 is merged | ||
uses: awalsh128/cache-apt-pkgs-action | ||
with: | ||
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd | ||
version: 1.0 | ||
execute_install_scripts: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test |