33 pull_request :
44concurrency :
55 group : ${{ github.ref }}-${{ github.workflow }}
6- cancel-in-progress : true
76jobs :
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