Fix workflow: use act-compatible container image
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,10 +8,10 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ubuntu:22.04
|
image: catthehacker/ubuntu:act-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -21,55 +21,39 @@ jobs:
|
|||||||
apt-get install -y build-essential cmake git pkg-config \
|
apt-get install -y build-essential cmake git pkg-config \
|
||||||
libasound2-dev libfreetype6-dev libx11-dev libxrandr-dev \
|
libasound2-dev libfreetype6-dev libx11-dev libxrandr-dev \
|
||||||
libxcursor-dev libxinerama-dev libwebkit2gtk-4.1-dev \
|
libxcursor-dev libxinerama-dev libwebkit2gtk-4.1-dev \
|
||||||
libcurl4-openssl-dev zip mingw-w64
|
libcurl4-openssl-dev zip
|
||||||
|
|
||||||
- name: Clone JUCE
|
- name: Clone JUCE
|
||||||
run: git clone --depth 1 https://github.com/juce-framework/JUCE.git ../JUCE
|
run: git clone --depth 1 https://github.com/juce-framework/JUCE.git ../JUCE
|
||||||
|
|
||||||
- name: Configure CMake (Linux)
|
- name: Configure CMake
|
||||||
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
|
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
- name: Build Release (Linux)
|
- name: Build Release
|
||||||
run: cmake --build build --config Release --parallel $(nproc)
|
run: cmake --build build --config Release --parallel $(nproc)
|
||||||
|
|
||||||
- name: Package VST3 Linux
|
- name: Package VST3
|
||||||
run: cd build/InstaDrums_artefacts/Release && zip -r $GITHUB_WORKSPACE/InstaDrums-VST3-Linux-x64.zip VST3/InstaDrums.vst3
|
run: cd build/InstaDrums_artefacts/Release && zip -r ${GITHUB_WORKSPACE}/InstaDrums-VST3-Linux-x64.zip VST3/InstaDrums.vst3
|
||||||
|
|
||||||
- name: Package Standalone Linux
|
- name: Package Standalone
|
||||||
run: zip -j InstaDrums-Standalone-Linux-x64.zip build/InstaDrums_artefacts/Release/Standalone/InstaDrums
|
run: zip -j InstaDrums-Standalone-Linux-x64.zip build/InstaDrums_artefacts/Release/Standalone/InstaDrums
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: linux-builds
|
|
||||||
path: |
|
|
||||||
InstaDrums-VST3-Linux-x64.zip
|
|
||||||
InstaDrums-Standalone-Linux-x64.zip
|
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Clone JUCE
|
- name: Clone JUCE
|
||||||
run: git clone --depth 1 https://github.com/juce-framework/JUCE.git ../JUCE
|
run: git clone --depth 1 https://github.com/juce-framework/JUCE.git ../JUCE || true
|
||||||
|
|
||||||
- name: Configure CMake (ARM64)
|
- name: Configure CMake (Universal)
|
||||||
run: cmake -B build -G Xcode -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0
|
run: cmake -B build -G Xcode -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0
|
||||||
|
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
run: cmake --build build --config Release
|
run: cmake --build build --config Release
|
||||||
|
|
||||||
- name: Package VST3
|
- name: Package VST3
|
||||||
run: cd build/InstaDrums_artefacts/Release && zip -r $GITHUB_WORKSPACE/InstaDrums-VST3-macOS-ARM64.zip VST3/InstaDrums.vst3
|
run: cd build/InstaDrums_artefacts/Release && zip -r ${GITHUB_WORKSPACE}/InstaDrums-VST3-macOS.zip VST3/InstaDrums.vst3
|
||||||
|
|
||||||
- name: Package AU
|
- name: Package AU
|
||||||
run: cd build/InstaDrums_artefacts/Release && zip -r $GITHUB_WORKSPACE/InstaDrums-AU-macOS-ARM64.zip AU/InstaDrums.component
|
run: cd build/InstaDrums_artefacts/Release && zip -r ${GITHUB_WORKSPACE}/InstaDrums-AU-macOS.zip AU/InstaDrums.component
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: macos-builds
|
|
||||||
path: |
|
|
||||||
InstaDrums-VST3-macOS-ARM64.zip
|
|
||||||
InstaDrums-AU-macOS-ARM64.zip
|
|
||||||
|
|||||||
Reference in New Issue
Block a user