don't try to build libutil unless required #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
./bootstrap.sh | |
./configure | |
make | |
macos: | |
runs-on: macos-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
brew install autoconf automake libtool pkg-config | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
./bootstrap.sh | |
./configure | |
make | |
mingw-cross: | |
strategy: | |
matrix: | |
arch: [i686, x86_64] | |
include: | |
- arch: i686 | |
os: mingw32 | |
- arch: x86_64 | |
os: mingw64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install cross compiler | |
run: | | |
ARCH=${{ matrix.arch }} | |
sudo apt-get install g++-mingw-w64-${ARCH//_/-} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
./bootstrap.sh | |
./configure --host=${{ matrix.arch }}-w64-mingw32 --prefix=/usr/${{ matrix.arch }}-w64-mingw32 | |
make | |
windows-msvc: | |
strategy: | |
matrix: | |
platform: [Win32, x64] | |
runs-on: windows-latest | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Add MSBuild to PATH | |
uses: microsoft/[email protected] | |
- name: Build | |
run: | | |
MSBuild.exe vcproj/mp4fpsmod.sln /m /p:Configuration=Release /p:Platform=${{ matrix.platform }} |