mirror of
https://github.com/ish-app/ish.git
synced 2026-05-28 21:10:35 +00:00
c3ce52ce6f
In particular GitHub Actions does not even have Ubuntu 20.04 anymore
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
cc: [clang, gcc]
|
|
kernel: [ish, linux]
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install libarchive-dev
|
|
pip3 install meson ninja
|
|
- name: Clone Linux
|
|
if: matrix.kernel == 'linux'
|
|
run: deps/clone-linux.sh
|
|
- name: Build
|
|
run: |
|
|
meson build -Dengine=asbestos -Dkernel=${{matrix.kernel}}
|
|
ninja -C build
|
|
env:
|
|
CC: ${{matrix.cc}}
|
|
- name: Test
|
|
if: matrix.kernel == 'ish'
|
|
run: ninja -C build test
|
|
|
|
build-mac:
|
|
runs-on: macos-26
|
|
strategy:
|
|
matrix:
|
|
kernel: [ish, linux]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- name: Install dependencies
|
|
run: |
|
|
brew install llvm lld ninja libarchive meson
|
|
- name: Clone Linux
|
|
if: matrix.kernel == 'linux'
|
|
run: deps/clone-linux.sh
|
|
- name: Build
|
|
if: matrix.kernel == 'ish'
|
|
run: xcodebuild -project iSH.xcodeproj -scheme iSH -arch arm64 -sdk iphoneos CODE_SIGNING_ALLOWED=NO
|
|
- name: Build
|
|
if: matrix.kernel == 'linux'
|
|
run: xcodebuild -project iSH.xcodeproj -scheme iSH+Linux -arch x86_64 -sdk iphonesimulator CODE_SIGNING_ALLOWED=NO
|