mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
319507c595
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
name: ci-freebsd
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
CFLAGS:
|
|
description: 'Custom CFLAGS'
|
|
default: ''
|
|
required: false
|
|
type: string
|
|
|
|
jobs:
|
|
build-freebsd:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build on FreeBSD
|
|
uses: vmactions/freebsd-vm@v1
|
|
with:
|
|
prepare: |
|
|
pkg install -y autoconf automake gettext libtool pkgconf
|
|
pkg install -y aspell check glib libssh2 libX11
|
|
|
|
run: |
|
|
./autogen.sh
|
|
|
|
pw useradd test -d "$(pwd)"
|
|
chown -R test $(pwd)
|
|
|
|
su - test -c ' \
|
|
\
|
|
export CFLAGS="${{ inputs.CFLAGS }}" && \
|
|
\
|
|
./configure \
|
|
--prefix="$(pwd)/install-prefix" \
|
|
--with-screen=ncurses \
|
|
--enable-mclib \
|
|
--enable-aspell \
|
|
--enable-werror \
|
|
&& \
|
|
\
|
|
make && \
|
|
make check && \
|
|
make install \
|
|
'
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: test-suite-logs-freebsd
|
|
path: ./**/test-suite.log
|