-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (39 loc) · 1.52 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "haiku-ci"
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- '**.cpp'
- '**.h'
- '**.rdef'
jobs:
build-haiku:
timeout-minutes: 60
runs-on: ${{ matrix.config.runner }}
name: build-${{ matrix.config.os }}-${{ matrix.config.version }}-${{ matrix.config.architecture }}
strategy:
fail-fast: false
matrix:
config:
# The OS versions supported are specific to the version of the action
# https://github.com/cross-platform-actions/action/blob/master/changelog.md
- { os: haiku, version: 'r1beta5', runner: 'ubuntu-latest', architecture: 'x86-64' }
- { os: haiku, version: 'r1beta5', runner: 'ubuntu-latest', architecture: 'x86' }
steps:
- uses: actions/checkout@v4
- uses: korli/action@v0.25.0-haiku1
with:
operating_system: ${{ matrix.config.os }}
version: ${{ matrix.config.version }}
architecture: ${{ matrix.config.architecture }}
run: |
if [[ `uname -m` == BePC ]]; then
ssh user@localhost "pkgman update -y haiku_devel cmd:gcc gcc_syslibs_devel libgit2_1.8_x86_devel lexilla_x86_devel yaml_cpp*_x86_devel editorconfig_core_c_x86_devel" &&
setarch x86 make
else
ssh user@localhost "pkgman update -y haiku_devel cmd:gcc gcc_syslibs_devel libgit2_1.8_devel lexilla_devel yaml_cpp*_devel editorconfig_core_c_devel" &&
make
fi