Skip to content

Commit

Permalink
Use Nix to install dependencies in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gnome-mpv committed Mar 3, 2024
1 parent b680f2e commit a5fd417
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo sed -i 's/jammy/lunar/g' /etc/apt/sources.list
- run: sudo apt update
- run: sudo apt dist-upgrade
- run: sudo apt install -y appstream-util libadwaita-1-dev libepoxy-dev libgtk-4-dev libmpv-dev meson ninja-build pkg-config gettext
- run: meson setup build
- run: ninja -C build test
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix --extra-experimental-features 'nix-command flakes' develop nixpkgs#celluloid --command bash -c 'meson setup build && ninja -C build test'

0 comments on commit a5fd417

Please sign in to comment.