Skip to content

Commit

Permalink
CI rework
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Dec 23, 2023
1 parent 01508aa commit 542b6bf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 58 deletions.
54 changes: 17 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,24 @@ on: [push, pull_request]
env:
DEBIAN_FRONTEND: noninteractive
HOMEBREW_NO_AUTO_UPDATE: 1
WITH_LTO: false
HOMEBREW_NO_INSTALL_CLEANUP: 1

jobs:
macos-11:
runs-on: macos-11
linux:
strategy:
matrix:
- target: [debian:11, debian:12, ubuntu:18.04, ubuntu:20.04, ubuntu:22.04]
runs-on: ubuntu-latest
container:
image: ${{ matrix.target }}
steps:
- uses: actions/checkout@v3
- name: Set up dependencies
run: |
brew install fluid-synth liblo libmagic libsndfile pkg-config pyqt@5 qt@5 sdl2
- name: make features
run: make features
- name: make
run: make -j $(sysctl -n hw.logicalcpu)

ubuntu-20_04:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Fix GitHub's mess
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 libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
- name: Set up dependencies
run: |
sudo apt-get install -yqq libasound2-dev libfluidsynth-dev libgl1-mesa-dev liblo-dev libmagic-dev libpulse-dev libsdl2-dev libsndfile1-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev pkg-config pyqt5-dev-tools qtbase5-dev
sudo apt-get install -yqq g++-multilib libx11-6:i386 libxext6:i386
sudo apt-get install -yqq g++-multilib libasound2-dev libfluidsynth-dev libgl1-mesa-dev liblo-dev libmagic-dev libpulse-dev libsdl2-dev libsndfile1-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev make pkg-config pyqt5-dev-tools qtbase5-dev
sudo apt-get install -yqq libx11-6:i386 libxext6:i386
# Fix 32bit bridge build
sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
sudo ln -s /usr/lib/i386-linux-gnu/libXext.so.6 /usr/lib/i386-linux-gnu/libXext.so
Expand All @@ -44,29 +33,20 @@ jobs:
- name: make posix32
run: make posix32 -j $(nproc)

ubuntu-22_04:
runs-on: ubuntu-22.04
macos:
strategy:
matrix:
- target: [macos-11, macos-12]
runs-on: ${{ matrix.target }}
steps:
- uses: actions/checkout@v3
- name: Fix GitHub's mess
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 libc6:i386 libgcc-s1:i386 libstdc++6:i386
- name: Set up dependencies
run: |
sudo apt-get install -yqq libasound2-dev libfluidsynth-dev libgl1-mesa-dev liblo-dev libmagic-dev libpulse-dev libsdl2-dev libsndfile1-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev pkg-config pyqt5-dev-tools qtbase5-dev
sudo apt-get install -yqq g++-multilib libx11-6:i386 libxext6:i386
# Fix 32bit bridge build
sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
sudo ln -s /usr/lib/i386-linux-gnu/libXext.so.6 /usr/lib/i386-linux-gnu/libXext.so
brew install fluid-synth liblo libmagic libsndfile pkg-config pyqt@5 qt@5 sdl2
- name: make features
run: make features
- name: make
run: make -j $(nproc)
- name: make posix32
run: make posix32 -j $(nproc)
run: make -j $(sysctl -n hw.logicalcpu)

wasm:
runs-on: ubuntu-22.04
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/irc.yml

This file was deleted.

9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on: [push, pull_request]

env:
CACHE_VERSION: 1
DEBIAN_FRONTEND: noninteractive
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
PAWPAW_SKIP_LTO: 1
PAWPAW_VERSION: cd7b760d6a32ecad263b112c12be8a306ed1e89c
PAWPAW_SKIP_TESTS: 1
PAWPAW_VERSION: 4abf7b5fa7a8203e8f31db0f222b3a3b6f9a93a2

jobs:
# macOS native universal build
Expand All @@ -29,6 +33,7 @@ jobs:
run: |
git clone https://github.com/DISTRHO/PawPaw.git
git -C PawPaw checkout ${{ env.PAWPAW_VERSION }}
./PawPaw/.github/workflows/bootstrap-deps.sh macos-universal
./PawPaw/bootstrap-carla.sh macos-universal && ./PawPaw/.cleanup.sh macos-universal
- name: Build macOS universal
shell: bash
Expand Down Expand Up @@ -92,6 +97,7 @@ jobs:
run: |
git clone https://github.com/DISTRHO/PawPaw.git
git -C PawPaw checkout ${{ env.PAWPAW_VERSION }}
./PawPaw/.github/workflows/bootstrap-deps.sh win32
./PawPaw/bootstrap-carla.sh win32 && ./PawPaw/.cleanup.sh win32
- name: Build win32 cross-compiled
shell: bash
Expand Down Expand Up @@ -155,6 +161,7 @@ jobs:
run: |
git clone https://github.com/DISTRHO/PawPaw.git
git -C PawPaw checkout ${{ env.PAWPAW_VERSION }}
./PawPaw/.github/workflows/bootstrap-deps.sh win64
./PawPaw/bootstrap-carla.sh win64 && ./PawPaw/.cleanup.sh win64
- name: Build win64 cross-compiled
shell: bash
Expand Down

0 comments on commit 542b6bf

Please sign in to comment.