diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..145ee22 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,29 @@ +name: Build xdg-desktop-portal-luminous (nix) + +on: [push, pull_request] +jobs: + nix: + name: "Build xdg-desktop-portal-luminous" + runs-on: ubuntu-latest + steps: + - name: Checkout xdg-desktop-portal-luminous + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: install nix + uses: cachix/install-nix-action@v20 + with: + install_url: https://nixos.org/nix/install + extra_nix_config: | + auto-optimise-store = true + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + experimental-features = nix-command flakes + + - name: Setup meson + run: | + nix develop --command meson build + + - name: Exec ninja + run: | + nix develop --command ninja -C build diff --git a/README.md b/README.md index acbd938..63808af 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ An alternative to xdg-desktop-portal-wlr for wlroots compositors. This project is a stand alone binary and does not depend on grim. `libwayshot` is used as the screencopy backend to enable screenshots. +![https://github.com/waycrate/xdg-desktop-portal-luminous/actions](https://github.com/waycrate/xdg-desktop-portal-luminous/actions/workflows/ci.yaml/badge.svg) + # Exposed interfaces: 1. org.freedesktop.impl.portal.ScreenCast diff --git a/flake.lock b/flake.lock index 7a5a083..14a71db 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1692557222, - "narHash": "sha256-TCOtZaioLf/jTEgfa+nyg0Nwq5Uc610Z+OFV75yUgGw=", + "lastModified": 1692808169, + "narHash": "sha256-x9Opq06rIiwdwGeK2Ykj69dNc2IvUH1fY55Wm7atwrE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "0b07d4957ee1bd7fd3bdfd12db5f361bd70175a6", + "rev": "9201b5ff357e781bf014d0330d18555695df7ba8", "type": "github" }, "original": {