|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- name: cmake
-
- on:
- push:
- branches:
- - '*'
- pull_request:
- branches:
- - '*'
-
- env:
- DEBIAN_FRONTEND: noninteractive
- HOMEBREW_NO_AUTO_UPDATE: 1
-
- jobs:
- macos-11:
- runs-on: macos-11
- steps:
- - uses: actions/checkout@v3
- - name: Set up dependencies
- run: |
- brew install cmake fluid-synth liblo libmagic libsndfile pkg-config
- - name: configure
- run: cmake -S cmake -B build
- - name: build
- run: cmake --build build -j $(sysctl -n hw.logicalcpu)
-
- mingw32-cross:
- runs-on: ubuntu-22.04
- steps:
- - uses: actions/checkout@v3
- - name: Set up dependencies
- run: |
- sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
- sudo dpkg --add-architecture i386
- sudo apt-get update -qq
- sudo apt-get install -yqq --allow-downgrades cmake libc6:i386 libgcc-s1:i386 libstdc++6:i386 binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable:i386
- - name: configure
- env:
- PKG_CONFIG: false
- run: cmake -S cmake -B build \
- -DCMAKE_CROSSCOMPILING=ON \
- -DCMAKE_CROSSCOMPILING_EMULATOR=wine \
- -DCMAKE_SYSTEM_NAME=Windows \
- -DCMAKE_SYSTEM_PROCESSOR=i686 \
- -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc \
- -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ \
- -DCMAKE_AR=$(which i686-w64-mingw32-ar) \
- -DCMAKE_RANLIB=$(which i686-w64-mingw32-ranlib)
- - name: build
- run: cmake --build build -j $(nproc)
-
- mingw64-cross:
- runs-on: ubuntu-22.04
- steps:
- - uses: actions/checkout@v3
- - name: Set up dependencies
- run: |
- sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
- sudo dpkg --add-architecture i386
- sudo apt-get update -qq
- sudo apt-get install -yqq --allow-downgrades cmake libc6:i386 libgcc-s1:i386 libstdc++6:i386 binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable
- - name: configure
- env:
- PKG_CONFIG: false
- run: cmake -S cmake -B build \
- -DCMAKE_CROSSCOMPILING=ON \
- -DCMAKE_CROSSCOMPILING_EMULATOR=wine \
- -DCMAKE_SYSTEM_NAME=Windows \
- -DCMAKE_SYSTEM_PROCESSOR=x86_64 \
- -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
- -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \
- -DCMAKE_AR=$(which x86_64-w64-mingw32-ar) \
- -DCMAKE_RANLIB=$(which x86_64-w64-mingw32-ranlib)
- - name: build
- run: cmake --build build -j $(nproc)
-
- ubuntu-20_04:
- runs-on: ubuntu-20.04
- steps:
- - uses: actions/checkout@v3
- - name: Set up dependencies
- run: |
- sudo apt-get update -qq
- sudo apt-get install -yqq cmake libfluidsynth-dev liblo-dev libmagic-dev libsndfile1-dev libx11-dev pkg-config
- - name: configure
- run: cmake -S cmake -B build
- - name: build
- run: cmake --build build -j $(nproc)
-
- ubuntu-22_04:
- runs-on: ubuntu-22.04
- steps:
- - uses: actions/checkout@v3
- - name: Set up dependencies
- run: |
- sudo apt-get update -qq
- sudo apt-get install -yqq cmake libfluidsynth-dev liblo-dev libmagic-dev libsndfile1-dev libx11-dev pkg-config
- - name: configure
- run: cmake -S cmake -B build
- - name: build
- run: cmake --build build -j $(nproc)
-
- windows:
- runs-on: windows-latest
- steps:
- - uses: actions/checkout@v3
- - name: configure
- run: cmake -S cmake -B build
- - name: build
- run: cmake --build build
|