2023-03-03 18:15:49 +00:00
|
|
|
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: |
|
2024-03-13 00:23:25 +00:00
|
|
|
pacman -Syu --noconfirm base-devel gcc git ninja meson gtk-layer-shell pulseaudio wayland libdbusmenu-gtk3 libsass
|
2023-03-17 23:16:52 +00:00
|
|
|
|
2023-03-03 18:15:49 +00:00
|
|
|
- name: Download gBar
|
2024-03-13 00:47:04 +00:00
|
|
|
uses: actions/checkout@v4.1.2
|
2023-03-17 23:16:52 +00:00
|
|
|
|
2023-03-03 18:15:49 +00:00
|
|
|
- name: Run meson
|
|
|
|
run: |
|
|
|
|
meson setup build
|
2023-03-17 23:16:52 +00:00
|
|
|
|
2023-03-03 18:15:49 +00:00
|
|
|
- name: Build gBar
|
|
|
|
run: |
|
|
|
|
ninja -C build
|
|
|
|
nix:
|
|
|
|
name: Build using Nix
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-03-03 18:33:38 +00:00
|
|
|
- name: Install Nix
|
|
|
|
uses: cachix/install-nix-action@v20
|
2023-03-17 23:16:52 +00:00
|
|
|
|
|
|
|
- name: Download gBar
|
|
|
|
uses: actions/checkout@v3.3.0
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
2023-03-03 18:15:49 +00:00
|
|
|
- name: Build Nix flake
|
|
|
|
run: |
|
2023-03-03 18:38:39 +00:00
|
|
|
nix build --print-build-logs
|