Skip to content

only build public functionality from now on #129

only build public functionality from now on

only build public functionality from now on #129

Workflow file for this run

name: Rust CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_and_test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
name: Build and test
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.69.0
default: true
- name: Install Ubuntu dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: export DEBIAN_FRONTEND=noninteractive && sudo apt update && sudo apt install -y librust-alsa-sys-dev
# Fake dependency to build the binary, otherwise it fails even with the feature off
- run: |
mkdir -p crates/glass

Check failure on line 34 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
cat <<EOF > crates/glass/Cargo.toml
[package]
name = "glass"
version = "0.1.0"
edition = "2021"
EOF
- run: cargo build --release
- run: cargo test