compiles for codico box #96
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_NET_GIT_FETCH_WITH_CLI: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install SSH key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.EI_RUNNER_DEPLOY_KEY }} | |
- name: Git config | |
run: | | |
git config --global url."ssh://[email protected]/".insteadOf "https://github.com/" | |
- name: Install GStreamer dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \ | |
libpango1.0-dev \ | |
libcairo2-dev \ | |
gstreamer1.0-plugins-base \ | |
gstreamer1.0-plugins-good \ | |
gstreamer1.0-libav \ | |
gstreamer1.0-tools \ | |
gstreamer1.0-x \ | |
gstreamer1.0-alsa \ | |
gstreamer1.0-gl \ | |
gstreamer1.0-gtk3 \ | |
gstreamer1.0-qt5 \ | |
gstreamer1.0-pulseaudio | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Check formatting | |
run: cargo fmt -- --check | |
- name: Build | |
run: cargo build --no-default-features --features eim --verbose | |
- name: Run tests | |
run: cargo test --no-default-features --features eim --verbose |