(file_progress_show_total): use 'copied_bytes' to show numeric value.
[midnight-commander.git] / .github / workflows / ci-freebsd.yml
blob108587f27b28d3be6e759753efc14781ea0213d8
1 name: ci-freebsd
3 on:
4   workflow_call:
5     inputs:
6       CFLAGS:
7         description: 'Custom CFLAGS'
8         default: ''
9         required: false
10         type: string
12 jobs:
13   build-freebsd:
14     runs-on: ubuntu-latest
15     timeout-minutes: 15
17     steps:
18       - uses: actions/checkout@v4
20       - name: Build on FreeBSD
21         uses: vmactions/freebsd-vm@v1
22         with:
23           prepare: |
24             pkg install -y autoconf automake gettext libtool pkgconf
25             pkg install -y aspell check glib libssh2 libX11
27           run: |
28             ./autogen.sh
30             pw useradd test -d "$(pwd)"
31             chown -R test $(pwd)
33             su - test -c ' \
34               \
35               export CFLAGS="${{ inputs.CFLAGS }}" && \
36               \
37               ./configure \
38                 --prefix="$(pwd)/install-prefix" \
39                 --with-screen=ncurses \
40                 --enable-mclib \
41                 --enable-aspell \
42                 --enable-werror \
43                 && \
44               \
45               make && \
46               make check && \
47               make install \
48             '
50       - uses: actions/upload-artifact@v4
51         if: failure()
52         with:
53           name: test-suite-logs-freebsd
54           path: ./**/test-suite.log