Skip to content

Commit

Permalink
XXX macos install location
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Aug 19, 2024
1 parent 94a7386 commit a636920
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ jobs:
- name: Configure
run: >-
cmake
-D CMAKE_INSTALL_PREFIX:PATH=$PWD/_prefix
-D CMAKE_C_FLAGS=-I/opt/homebrew/include
-D CMAKE_EXE_LINKER_FLAGS=-L/opt/homebrew/Cellar
-D DEBUG_CMAKE=1
Expand All @@ -248,9 +249,13 @@ jobs:
- name: "Dryrun test (not installed)"
run: printf "\n\n" | ./tools/test-avrdude -v -e build/src/avrdude -c '-C build/src/avrdude.conf' -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Install
run: sudo cmake --build build --target install
run: cmake --build build --target install
- name: "Dryrun test (installed)"
run: printf "\n\n" | ./tools/test-avrdude -v -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
run: |
export PATH="$PWD/_prefix/bin:$PATH"
: export DYLD_LIBRARY_PATH="$PWD/_prefix/lib${DYLD_LIBRARY_PATH+":$DYLD_LIBRARY_PATH"}"
printf "\n\n" | ./tools/test-avrdude -v -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Archive build artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -297,8 +302,10 @@ jobs:
mkdir _ambuild && cd _ambuild
env
CFLAGS="-I/opt/homebrew/include" LDFLAGS="-L/opt/homebrew/lib"
CFLAGS="-I/opt/homebrew/include"
LDFLAGS="-L/opt/homebrew/lib"
../src/configure
--prefix=$PWD/_prefix
- name: Build
run: make -C _ambuild -j$(nproc)
- name: "Dryrun test (not installed)"
Expand All @@ -325,10 +332,12 @@ jobs:
pkg-config --libs "$pkg"
done)
- name: Install
run: sudo make -C _ambuild install
run: make -C _ambuild install
- name: "Dryrun test (installed)"
run: >-
export DYLD_LIBRARY_PATH=/usr/local/lib
export PATH="$PWD/_prefix/bin:$PATH"
: export DYLD_LIBRARY_PATH="$PWD/_prefix/lib${DYLD_LIBRARY_PATH+":$DYLD_LIBRARY_PATH"}"
printf "\n\n" | ./tools/test-avrdude -v -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
Expand Down

0 comments on commit a636920

Please sign in to comment.