1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: write
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
- os: ubuntu-latest
cxxflags: -std=c++11
- os: macos-latest
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: deps [macOS]
if: runner.os == 'macOS'
run: |
export HOMEBREW_NO_INSTALL_CLEANUP=1
brew update
brew upgrade || true
brew uninstall --ignore-dependencies --force pkg-config@0.29.2
brew install \
autoconf \
automake \
libtool \
pkgconf \
coreutils \
gnu-sed
- uses: actions/checkout@v6
with:
submodules: true
- name: bootstrap
run: autoreconf -vfi
- name: configure
run: ./configure
- name: make distcheck
run: |
[[ -n "${{ matrix.cxxflags }}" ]] && export DISTCHECK_CONFIGURE_FLAGS='CXXFLAGS="${CXXFLAGS} ${{ matrix.cxxflags }}"'
if [ '${{ runner.os }}' == 'macOS' ]; then
# Assumes `sed` is GNU sed:
# sed: illegal option -- r
export PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH"
fi
make distcheck
build-mingw:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: >-
git
zip
upx
base-devel
pacboy: >-
toolchain:p
autotools:p
- uses: actions/checkout@v6
with:
submodules: true
- name: build
run: |
export LDFLAGS="-s -Wl,-no-undefined -Wl,-O1 -static"
export CXXFLAGS="-O2 -march=x86-64 -fomit-frame-pointer -pipe -DUNICODE -D_UNICODE"
export PKG_CONFIG="pkg-config --static"
autoreconf -vfi
./configure --disable-shared --enable-static --with-simd=runtime
make distcheck
|