update docs #3
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: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Install glib dev files | |
run: | |
sudo apt-get install libglib2.0-dev | |
- name: Download chafa source | |
run: > | |
cd /tmp | |
&& curl 'https://hpjansson.org/chafa/releases/chafa-1.14.4.tar.xz' -O | |
&& tar xf chafa-1.14.4.tar.xz | |
- name: Build chafa | |
run: > | |
cd /tmp/chafa-1.14.4 | |
&& ./configure --without-tools | |
&& make | |
&& sudo make install | |
&& sudo ldconfig | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose |