Skip to content

configure: Don't use VLA in C99 test, as it's no longer used in yash #586

configure: Don't use VLA in C99 test, as it's no longer used in yash

configure: Don't use VLA in C99 test, as it's no longer used in yash #586

Workflow file for this run

name: C CI
on:
push:
branches: [trunk]
pull_request:
branches: [trunk]
jobs:
check-on-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: install prerequisites
run: |
sudo apt-get update
sudo apt-get install asciidoc gettext libncurses-dev
- name: configure
run: ./configure
- name: make distcheck
run: make -j$(nproc) distcheck
- name: Display test summary on distcheck failure
if: failure()
run: |
if [ -f yash-*/tests/summary.log ]; then
echo "=== Test Summary ==="
cat yash-*/tests/summary.log
fi
- name: make check as root
run: sudo make -j$(nproc) check
- name: Display test summary on check failure
if: failure()
run: |
if [ -f tests/summary.log ]; then
echo "=== Test Summary ==="
cat tests/summary.log
fi
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v7
with:
name: test-logs-ubuntu
path: |
tests/summary.log
yash-*/tests/summary.log
if-no-files-found: ignore
check-on-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v7
- name: install prerequisites
run: brew install asciidoc gettext ncurses
- name: configure
run: ./configure CADDS="-I$(brew --prefix gettext)/include" LDADDS="-L$(brew --prefix gettext)/lib"
- name: make check
run: make -j$(sysctl -n hw.logicalcpu) check
- name: Display test summary on failure
if: failure()
run: |
if [ -f tests/summary.log ]; then
echo "=== Test Summary ==="
cat tests/summary.log
fi
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v7
with:
name: test-logs-macos
path: tests/summary.log
if-no-files-found: ignore
check-cross-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: install cross compilation environment
uses: cyberjunk/gha-ubuntu-cross@v5
with:
arch: arm64
- name: install prerequisites
run: |
sudo apt-get install asciidoc gettext libncurses-dev:arm64
- name: create distdir
run: |
./configure
make dist-zstd
tar -x --zstd -f yash-?*.tar.zst
- name: configure for cross compilation to arm64
run: |
cd yash-?*/
./configure --host=aarch64-linux-gnu CADDS="-I/usr/include/aarch64-linux-gnu" LDADDS="-L/usr/lib/aarch64-linux-gnu" || cat config.log
- name: make for arm64
run: |
cd yash-?*/
make -j$(nproc) yash
summarize:
runs-on: ubuntu-latest
needs: [check-on-ubuntu, check-on-macos, check-cross-compile]
if: ${{ always() }}
steps:
- uses: Kesin11/actions-timeline@v3