Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Linux runners (catthehacker = optimized images for act)
-P ubuntu-latest=catthehacker/ubuntu:act-latest
-P ubuntu-22.04=catthehacker/ubuntu:act-latest
-P ubuntu-24.04=catthehacker/ubuntu:act-latest

# ARM64: same runner image, act uses --container-architecture linux/arm64 + QEMU
-P ubuntu-22.04-arm=catthehacker/ubuntu:act-latest

# Windows: act cannot run Windows containers on Linux,
# so a Linux image is used to validate the workflow logic
-P windows-latest=catthehacker/ubuntu:act-latest

# macOS: act cannot run macOS containers on Linux,
# so a Linux image is used to validate the workflow logic
-P macos-13=catthehacker/ubuntu:act-latest
-P macos-14=catthehacker/ubuntu:act-latest

# Windows ARM64: same approach as Windows x64 and macOS
-P windows-11-arm=catthehacker/ubuntu:act-latest
153 changes: 0 additions & 153 deletions .github/workflows/build.yml

This file was deleted.

86 changes: 86 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: macos

on:
workflow_dispatch:
push:
branches: [main]
tags: ['[0-9]+.[0-9]+.[0-9]+']
pull_request:
types: [opened, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
macos-build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-13
arch: x86_64
- os: macos-14
arch: arm64

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: latest
cache: true
# locked: false because pixi.lock does not yet include osx platforms;
# the lock file will be updated once macOS is added to the CI baseline
locked: false
cache-write: ${{ github.event_name != 'pull_request' }}

- name: Cache conan packages
uses: actions/cache@v4
with:
path: ~/.conan2/p
key: conan-macos-${{ matrix.arch }}-${{ hashFiles('conanfile.py') }}
restore-keys: conan-macos-${{ matrix.arch }}-

- name: Cache ccache
uses: actions/cache@v4
with:
path: ~/.ccache
key: ccache-macos-${{ matrix.arch }}-${{ github.sha }}
restore-keys: ccache-macos-${{ matrix.arch }}-

- name: Build & Test
run: pixi run all

- name: Package artifacts
if: startsWith(github.ref, 'refs/tags/')
run: |
mkdir -p dist
for ext_dir in extensions/*/; do
name=$(basename "$ext_dir")
mkdir -p "dist/$name"
find build/Release -name "${name}.dylib" -exec cp {} "dist/$name/" \; 2>/dev/null || true
cp "${ext_dir}manifest.json" "dist/$name/" 2>/dev/null || true
done
ls -la dist/*/
cd dist && zip -r ../pj-test-dummy-plugins-${{ github.ref_name }}-macos-${{ matrix.arch }}.zip .

- name: Upload artifact
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: pj-test-dummy-plugins-${{ github.ref_name }}-macos-${{ matrix.arch }}
path: pj-test-dummy-plugins-${{ github.ref_name }}-macos-${{ matrix.arch }}.zip

- name: Upload to Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: pj-test-dummy-plugins-${{ github.ref_name }}-macos-${{ matrix.arch }}.zip
generate_release_notes: false
fail_on_unmatched_files: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84 changes: 84 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: ubuntu

on:
workflow_dispatch:
push:
branches: [main]
tags: ['[0-9]+.[0-9]+.[0-9]+']
pull_request:
types: [opened, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ubuntu-build:
runs-on: ${{ matrix.ubuntu-runner }}
strategy:
fail-fast: false
matrix:
include:
- ubuntu-runner: ubuntu-22.04
arch: x86_64
- ubuntu-runner: ubuntu-22.04-arm
arch: aarch64

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: latest
cache: true
locked: false
cache-write: ${{ github.event_name != 'pull_request' }}

- name: Cache conan packages
uses: actions/cache@v4
with:
path: ~/.conan2/p
key: conan-ubuntu-${{ matrix.arch }}-${{ hashFiles('conanfile.py') }}
restore-keys: conan-ubuntu-${{ matrix.arch }}-

- name: Cache ccache
uses: actions/cache@v4
with:
path: ~/.ccache
key: ccache-ubuntu-${{ matrix.arch }}-${{ github.sha }}
restore-keys: ccache-ubuntu-${{ matrix.arch }}-

- name: Build & Test
run: pixi run all

- name: Package artifacts
if: startsWith(github.ref, 'refs/tags/')
run: |
mkdir -p dist
for ext_dir in extensions/*/; do
name=$(basename "$ext_dir")
mkdir -p "dist/$name"
find build/Release -name "${name}.so" -exec cp {} "dist/$name/" \; 2>/dev/null || true
cp "${ext_dir}manifest.json" "dist/$name/" 2>/dev/null || true
done
ls -la dist/*/
cd dist && zip -r ../pj-test-dummy-plugins-${{ github.ref_name }}-linux-${{ matrix.arch }}.zip .

- name: Upload artifact
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: pj-test-dummy-plugins-${{ github.ref_name }}-linux-${{ matrix.arch }}
path: pj-test-dummy-plugins-${{ github.ref_name }}-linux-${{ matrix.arch }}.zip

- name: Upload to Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: pj-test-dummy-plugins-${{ github.ref_name }}-linux-${{ matrix.arch }}.zip
generate_release_notes: true
fail_on_unmatched_files: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading