Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.

Commit f3796ff

Browse files
authored
Merge pull request #14 from The-Mod-Elephant/feature/nativeOSX
feat(native): Add native osx
2 parents 131bd2b + b7407fb commit f3796ff

1 file changed

Lines changed: 29 additions & 5 deletions

File tree

.github/workflows/main.yaml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
pull_request:
44
concurrency:
55
group: ${{ github.ref }}-${{ github.workflow }}
6-
cancel-in-progress: true
76
jobs:
87
build-linux:
98
runs-on: ubuntu-latest
@@ -27,10 +26,12 @@ jobs:
2726
include:
2827
- os: macos-latest
2928
target: '.#packages.aarch64-darwin'
30-
suffix: ''
3129
- os: macos-15-intel
3230
target: '.#packages.x86_64-darwin'
33-
suffix: ''
31+
- os: ubuntu-24.04
32+
target: '.#packages.x86_64-linux'
33+
- os: ubuntu-24.04-arm
34+
target: '.#packages.aarch64-linux'
3435
runs-on: ${{ matrix.os }}
3536
steps:
3637
- uses: actions/checkout@main
@@ -39,12 +40,35 @@ jobs:
3940
nix_path: nixpkgs=channel:nixos-25.05
4041
- run: |
4142
nix build ${{ matrix.target }}
43+
build-macos:
44+
strategy:
45+
matrix:
46+
include:
47+
- os: macos-latest
48+
include: /opt/homebrew/opt
49+
- os: macos-15-intel
50+
include: /usr/local/opt
51+
runs-on: ${{ matrix.os }}
52+
steps:
53+
- uses: actions/checkout@main
54+
- run: |
55+
export HOMEBREW_NO_AUTO_UPDATE=1
56+
brew install flex bison
57+
export LDFLAGS="$LDFLAGS -L/${{ matrix.include }}/flex/lib -L/${{ matrix.include }}/bison/lib"
58+
echo $LDFLAGS
59+
export CPPFLAGS="$CPPFLAGS -I/${{ matrix.include }}/flex/include"
60+
echo $CPPFLAGS
61+
export PATH="${{ matrix.include }}/flex/bin:${{ matrix.include }}/bison/bin:$PATH"
62+
echo $PATH
63+
mkdir -p obj
64+
cmake -Wno-dev -S src -B obj -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DFLEX_INCLUDE_DIR=${{ matrix.include }}/flex/include -DEXTRAS=OFF -DOCAML=OFF -DCMAKE_BUILD_TYPE=Release
65+
make -C obj
4266
- uses: actions/upload-artifact@v4
4367
with:
4468
name: ${{ matrix.os }}
45-
path: result/bin/elkhound
69+
path: obj/elkhound/elkhound
4670
if-no-files-found: error
47-
windows-build:
71+
build-windows:
4872
runs-on: windows-2022
4973
steps:
5074
- name: Checkout the code

0 commit comments

Comments
 (0)