Skip to content

Commit

Permalink
add Github Actions CI (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
korli authored Feb 6, 2024
1 parent cdeb5d8 commit 0fc954b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "haiku-ci"
on: [push, pull_request]

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: 'r1beta4', runner: 'ubuntu-latest', architecture: 'x86-64' }
- { os: haiku, version: 'r1beta4', runner: 'ubuntu-latest', architecture: 'x86' }

steps:
- uses: actions/checkout@v3

- uses: korli/[email protected]
with:
operating_system: ${{ matrix.config.os }}
version: ${{ matrix.config.version }}
architecture: ${{ matrix.config.architecture }}
run: |
mkdir -p dist
cd source
if [[ `uname -m` == BePC ]]; then
setarch x86 make
setarch x86 make bindcatalogs
else
make && make bindcatalogs
fi

0 comments on commit 0fc954b

Please sign in to comment.