Update rust.yml #13
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-latest | |
steps: | |
- name: Install Dependencies | |
run: sudo apt install meson ninja-build git -y && wget https://download.gnome.org/sources/gtk/4.16/gtk-4.16.12.tar.xz && cd gtk-4.16.7 && meson setup --prefix /opt/gtk builddir && cd builddir && meson compile && meson install && LD_LIBRARY_PATH="/opt/gtk/lib" && PATH="/opt/gtk/bin:$PATH" && export LD_LIBRARY_PATH PATH | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose |