mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 11:07:23 +00:00
Add Ubuntu 22.04, MacOS 12, Windows Server 2022 Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
121 lines
3.2 KiB
YAML
121 lines
3.2 KiB
YAML
# vi: set et ts=2 sw=2 :
|
|
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
linux:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-18.04, ubuntu-20.04, ubuntu-22.04 ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: install dependencies
|
|
run: |
|
|
sudo apt install \
|
|
automake \
|
|
gcc \
|
|
git \
|
|
libssl-dev \
|
|
libtool \
|
|
make \
|
|
wget
|
|
- name: install extra libraries
|
|
# This build job tries to verify as much of ipmitool code
|
|
# as possible, hence these libraries. They aren't usually
|
|
# needed for normal user builds:
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install \
|
|
libsystemd-dev \
|
|
libreadline-dev \
|
|
libfreeipmi-dev \
|
|
libusb-dev
|
|
- uses: actions/checkout@v2
|
|
- name: bootstrap
|
|
run: ./bootstrap
|
|
- name: configure
|
|
run: |
|
|
# For Linux, build as many extra interfaces as possible
|
|
# to verify the code
|
|
./configure --enable-intf-dummy \
|
|
--enable-intf-dbus \
|
|
--enable-intf-usb \
|
|
--enable-intf-free
|
|
- name: make
|
|
run: make
|
|
- name: make check
|
|
run: make check
|
|
- name: make distcheck
|
|
run: make distcheck
|
|
|
|
macos:
|
|
strategy:
|
|
matrix:
|
|
os: [ macos-10.15, macos-11, macos-12 ]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: install dependencies
|
|
run: brew install automake openssl libtool freeipmi wget
|
|
- uses: actions/checkout@v2
|
|
- name: bootstrap
|
|
run: ./bootstrap
|
|
- name: configure
|
|
run: |
|
|
./configure --enable-intf-dummy \
|
|
LDFLAGS=-L/usr/local/opt/openssl@1.1/lib \
|
|
CFLAGS=-I/usr/local/opt/openssl@1.1/include
|
|
- name: make
|
|
run: make
|
|
- name: make check
|
|
run: make check
|
|
- name: make distcheck
|
|
run: make distcheck
|
|
|
|
windows:
|
|
strategy:
|
|
matrix:
|
|
os: [ windows-2019, windows-2022 ]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: install dependencies
|
|
run: |-
|
|
choco install cygwin -y
|
|
choco install cyg-get -y
|
|
# Line continuation in PowerShell is backtick. Weird as Windows.
|
|
cyg-get gcc-g++ `
|
|
make `
|
|
automake `
|
|
autoconf `
|
|
m4 `
|
|
libtool `
|
|
libncurses-devel `
|
|
libreadline-devel `
|
|
libssl-devel `
|
|
dos2unix `
|
|
wget
|
|
echo "C:/tools/cygwin/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
echo "C:/tools/cygwin/usr/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
- uses: actions/checkout@v2
|
|
- name: convert line ends
|
|
# checkout action on Windows apparently converts line ends
|
|
# so we have to convert them back because cygwin bash can't
|
|
# can't handle Windows line ends
|
|
run: dos2unix bootstrap configure.ac csv-revision
|
|
- name: bootstrap
|
|
run: bash -c "./bootstrap"
|
|
- name: configure
|
|
run: bash -c "./configure"
|
|
- name: make
|
|
run: make
|
|
- name: make check
|
|
run: make check
|
|
- name: make distcheck
|
|
run: make distcheck
|