Skip to content

Commit ea4aba6

Browse files
committed
rework CI
Signed-off-by: falkTX <falktx@falktx.com>
1 parent d3bcbe6 commit ea4aba6

1 file changed

Lines changed: 80 additions & 17 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 80 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,46 @@ name: build
33
on:
44
push:
55

6+
env:
7+
CACHE_VERSION: 1
8+
PAWPAW_SKIP_LTO: 1
9+
PAWPAW_SKIP_SAMPLERATE: 1
10+
PAWPAW_VERSION: 7105dc52abffd5aa5f1ab65f27396f59ba945ea3
11+
612
jobs:
713
linux:
814
strategy:
915
matrix:
10-
target: [linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64]
11-
runs-on: ubuntu-20.04
16+
target: [linux-x86_64]
17+
runs-on: ubuntu-latest
18+
container:
19+
image: debian:10
1220
steps:
1321
- uses: actions/checkout@v3
1422
with:
1523
submodules: recursive
16-
- uses: distrho/dpf-cmake-action@v1
24+
- uses: actions/cache@v3
1725
with:
18-
target: ${{ matrix.target }}
19-
pawpaw: true
26+
path: |
27+
~/PawPawBuilds
28+
key: ${{ matrix.target }}-v${{ env.CACHE_VERSION }}
29+
- name: bootstrap
30+
shell: bash
31+
run: |
32+
sudo apt-get update -qq
33+
sudo apt-get install -yqq autoconf automake build-essential curl cmake git libasound2-dev libdbus-1-dev libgl1-mesa-dev libglib2.0-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev
34+
- name: bootstrap
35+
shell: bash
36+
run: |
37+
git clone https://github.com/DISTRHO/PawPaw.git
38+
git -C PawPaw checkout ${{ env.PAWPAW_VERSION }}
39+
./PawPaw/bootstrap-common.sh ${{ matrix.target }} && ./PawPaw/.cleanup.sh ${{ matrix.target }}
40+
- name: build
41+
shell: bash
42+
run: |
43+
source PawPaw/local.env ${{ matrix.target }}
44+
cmake -S . -B build
45+
$(which cmake) --build build
2046
2147
macos:
2248
strategy:
@@ -27,26 +53,63 @@ jobs:
2753
- uses: actions/checkout@v3
2854
with:
2955
submodules: recursive
30-
- name: fake dpf script
31-
run: |
32-
mkdir -p dpf/utils
33-
ln -s $(which ls) dpf/utils/package-osx-bundles.sh
34-
touch carla-macOS.pkg
35-
- uses: distrho/dpf-cmake-action@v1
56+
- uses: actions/cache@v3
3657
with:
37-
target: ${{ matrix.target }}
38-
pawpaw: true
58+
path: |
59+
~/PawPawBuilds
60+
key: ${{ matrix.target }}-v${{ env.CACHE_VERSION }}
61+
- name: install dependencies
62+
shell: bash
63+
run: |
64+
brew install cmake git jq meson
65+
- name: bootstrap
66+
shell: bash
67+
run: |
68+
git clone https://github.com/DISTRHO/PawPaw.git
69+
git -C PawPaw checkout ${{ env.PAWPAW_VERSION }}
70+
./PawPaw/bootstrap-common.sh ${{ matrix.target }} && ./PawPaw/.cleanup.sh ${{ matrix.target }}
71+
- name: build
72+
shell: bash
73+
run: |
74+
source PawPaw/local.env ${{ matrix.target }}
75+
cmake -S . -B build
76+
$(which cmake) --build build
3977
4078
windows:
4179
strategy:
4280
matrix:
4381
target: [win32, win64]
44-
runs-on: ubuntu-20.04
82+
runs-on: ubuntu-latest
83+
container:
84+
image: debian:12
4585
steps:
4686
- uses: actions/checkout@v3
4787
with:
4888
submodules: recursive
49-
- uses: distrho/dpf-cmake-action@v1
89+
- uses: actions/cache@v3
5090
with:
51-
target: ${{ matrix.target }}
52-
pawpaw: true
91+
path: |
92+
~/PawPawBuilds
93+
key: ${{ matrix.target }}-v${{ env.CACHE_VERSION }}
94+
- name: install dependencies
95+
shell: bash
96+
run: |
97+
sudo dpkg --add-architecture i386
98+
sudo apt-get update -qq
99+
if [ '${{ matrix.target }}' == 'win32' ]; then
100+
sudo apt-get install -yqq binutils-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64 wine-stable
101+
else
102+
sudo apt-get install -yqq binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64 wine-stable
103+
fi
104+
- name: bootstrap
105+
shell: bash
106+
run: |
107+
git clone https://github.com/DISTRHO/PawPaw.git
108+
git -C PawPaw checkout ${{ env.PAWPAW_VERSION }}
109+
./PawPaw/bootstrap-common.sh ${{ matrix.target }} && ./PawPaw/.cleanup.sh ${{ matrix.target }}
110+
- name: build
111+
shell: bash
112+
run: |
113+
source PawPaw/local.env ${{ matrix.target }}
114+
cmake -S . -B build
115+
$(which cmake) --build build

0 commit comments

Comments
 (0)