mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
parent
6f93c9981b
commit
f13fbd7aa6
1 changed files with 45 additions and 7 deletions
40
.github/workflows/build.yml
vendored
40
.github/workflows/build.yml
vendored
|
|
@ -18,17 +18,28 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
name: [
|
name: [
|
||||||
Arch,
|
Arch,
|
||||||
|
FreeBSD,
|
||||||
Void-musl
|
Void-musl
|
||||||
]
|
]
|
||||||
include:
|
include:
|
||||||
- name: Arch
|
- name: Arch
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
container: archlinux:base-devel
|
container: archlinux:base-devel
|
||||||
|
env:
|
||||||
|
SSH_HOST: ''
|
||||||
|
|
||||||
|
- name: FreeBSD
|
||||||
|
os: macos-10.15
|
||||||
|
env:
|
||||||
|
SSH_HOST: freebsd
|
||||||
|
|
||||||
- name: Void-musl
|
- name: Void-musl
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
container: ghcr.io/void-linux/void-linux:latest-thin-x86_64-musl
|
container: ghcr.io/void-linux/void-linux:latest-thin-x86_64-musl
|
||||||
|
env:
|
||||||
|
SSH_HOST: ''
|
||||||
|
|
||||||
|
env: ${{ matrix.env }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
||||||
|
|
@ -43,6 +54,16 @@ jobs:
|
||||||
pacman -S --noconfirm git meson clang wlroots libdrm libinput \
|
pacman -S --noconfirm git meson clang wlroots libdrm libinput \
|
||||||
wayland-protocols cairo pango libxml2 xorg-xwayland
|
wayland-protocols cairo pango libxml2 xorg-xwayland
|
||||||
|
|
||||||
|
- name: Install FreeBSD dependencies
|
||||||
|
if: matrix.name == 'FreeBSD'
|
||||||
|
uses: vmactions/freebsd-vm@v0.1.5
|
||||||
|
with:
|
||||||
|
usesh: true
|
||||||
|
prepare: |
|
||||||
|
pkg install -y git meson gcc pkgconf cairo pango evdev-proto \
|
||||||
|
wayland-protocols wlroots
|
||||||
|
run: echo "setup done"
|
||||||
|
|
||||||
- name: Install Void Linux dependencies
|
- name: Install Void Linux dependencies
|
||||||
if: matrix.name == 'Void-musl'
|
if: matrix.name == 'Void-musl'
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -58,13 +79,30 @@ jobs:
|
||||||
|
|
||||||
- name: Build with gcc
|
- name: Build with gcc
|
||||||
run: |
|
run: |
|
||||||
|
if test -z "$SSH_HOST"; then
|
||||||
export CC=gcc
|
export CC=gcc
|
||||||
meson build-gcc/ --werror
|
meson build-gcc/ --werror
|
||||||
meson compile -C build-gcc/
|
meson compile -C build-gcc/
|
||||||
|
else
|
||||||
|
echo '
|
||||||
|
cd "$GITHUB_WORKSPACE"
|
||||||
|
export CC=gcc
|
||||||
|
meson build-gcc/ --werror
|
||||||
|
meson compile -C build-gcc/
|
||||||
|
' | ssh "$SSH_HOST" /bin/sh
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build with clang
|
- name: Build with clang
|
||||||
run: |
|
run: |
|
||||||
|
if test -z "$SSH_HOST"; then
|
||||||
export CC=clang
|
export CC=clang
|
||||||
meson build-clang/ --werror
|
meson build-clang/ --werror
|
||||||
meson compile -C build-clang/
|
meson compile -C build-clang/
|
||||||
|
else
|
||||||
|
echo '
|
||||||
|
cd "$GITHUB_WORKSPACE"
|
||||||
|
export CC=clang
|
||||||
|
meson build-clang/ --werror
|
||||||
|
meson compile -C build-clang/
|
||||||
|
' | ssh "$SSH_HOST" /bin/sh
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue