From 41d75eeedd0a62673cb2ac19dca71e70fa4ced2b Mon Sep 17 00:00:00 2001 From: scorpion-26 Date: Fri, 3 Mar 2023 19:15:49 +0100 Subject: [PATCH] Add CI --- .github/workflows/build.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8960800 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + manual: + name: Build gBar manually + runs-on: ubuntu-latest + container: + image: archlinux + steps: + - name: Setup Arch Keyring + run: | + pacman-key --init + pacman-key --populate archlinux + - name: Download pacman packages + run: | + pacman -Syu --noconfirm base-devel gcc git ninja meson gtk-layer-shell pulseaudio wayland + + - name: Download gBar + uses: actions/checkout@v2 + + - name: Run meson + run: | + meson setup build + + - name: Build gBar + run: | + ninja -C build + nix: + name: Build using Nix + runs-on: ubuntu-latest + container: + image: nixos/nix + steps: + - name: Download gBar + uses: actions/checkout@v2 + - name: Build Nix flake + run: | + nix build --extra-experimental-features nix-command --extra-experimental-features flakes + +