Skip to content

Commit

Permalink
XXX SPLITME 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Aug 19, 2024
1 parent b28b78c commit c3f387a
Showing 1 changed file with 85 additions and 7 deletions.
92 changes: 85 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
mkdir _ambuild && cd _ambuild
../src/configure
--enable-doc
--enable-shared
--enable-parport
--enable-linuxgpio
--enable-linuxspi
Expand All @@ -73,8 +73,19 @@ jobs:
run: printf "\n\n" | ./tools/test-avrdude -v -e _ambuild/avrdude -c '-C _ambuild/avrdude.conf' -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Install
run: sudo make -C _ambuild install
- name: Debug Information
run: >-
find /usr/local -not -type d -ipath '*avrdude*'
ldd /usr/local/bin/avrdude
ldconfig -N -X -v
- name: "Dryrun test (installed)"
run: printf "\n\n" | ./tools/test-avrdude -v -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
run: >-
export LD_LIBRARY_PATH=/usr/local/lib
printf "\n\n" | ./tools/test-avrdude -v -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
# Re-enable distcheck after the doc fixes
# - name: distcheck
# run: make -C _ambuild -j$(nproc) distcheck "DISTCHECK_CONFIGURE_FLAGS=--disable-doc"
Expand Down Expand Up @@ -235,6 +246,10 @@ jobs:
run: cmake --build build
- 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
- name: "Dryrun test (installed)"
run: 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 @@ -276,16 +291,45 @@ jobs:
pkg-config
- name: Configure
run: >-
./src/bootstrap
autoreconf -vis src
mkdir _ambuild && cd _ambuild
CFLAGS="-I/opt/homebrew/include" LDFLAGS="-L/opt/homebrew/lib" ../src/configure
env
CFLAGS="-I/opt/homebrew/include" LDFLAGS="-L/opt/homebrew/lib"
../src/configure
- name: Build
run: make -C _ambuild -j$(nproc)
- name: "Dryrun test (not installed)"
run: printf "\n\n" | ./tools/test-avrdude -v -e _ambuild/avrdude -c '-C _ambuild/avrdude.conf' -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Debug Information
run: |
(set -ex; for pkg in libelf libusb hidapi libftdi readline libserialport; do
brew list "$pkg"
done)
ls -l /opt/homebrew/Cellar
ls -l /opt/homebrew/bin
ls -l /opt/homebrew/include
ls -l /opt/homebrew/lib
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
(set -ex; for pkg in libelf libusb-1.0 hidapi libftdi1 readline libserialport; do
if test "x$pkg" = xreadline; then continue; fi
pkg-config --cflags "$pkg"
pkg-config --libs "$pkg"
done)
- name: Install
run: sudo make -C _ambuild install
- name: "Dryrun test (installed)"
run: >-
export DYLD_LIBRARY_PATH=/usr/local/lib
printf "\n\n" | ./tools/test-avrdude -v -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
msvc:
runs-on: windows-latest
Expand Down Expand Up @@ -318,8 +362,31 @@ jobs:
-B build
- name: Build
run: cmake --build build --config ${{env.BUILD_TYPE}}
- name: Debug output build
run: Get-ChildItem -Path build -Force –Recurse
- name: Debug output TEMP
run: |
Write-Host '$env:TEMP'
Write-Host $env:TEMP
Write-Host "env:TEMP=$env:TEMP"
Get-ChildItem -Path $env:TEMP
- name: Debug powershell temp dir
run: |
Write-Host "GetTempPath"
$tmp = [System.IO.Path]::GetTempPath()
Write-Host $tmp
Write-Host "tmp=$tmp"
- name: "Dryrun test (not installed)"
run: Write-Host "`n`n" -NoNewline | Invoke-Expression -Command './tools/test-avrdude -v -e build/src/avrdude.exe -c "-C build/src/avrdude.conf" -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"'
run: |
Write-Host "GetTempPath"
$tmp = [System.IO.Path]::GetTempPath()
Write-Host "tmp=$tmp"
$tmp_slash = $tmp -replace '\\', '/'
Write-Host "tmp_slash=$tmp_slash"
Write-Host "`n`n" -NoNewline | bash tools/test-avrdude -v -t "$tmp_slash" -e build/src/${{env.BUILD_TYPE}}/avrdude.exe -c "-C build/src/avrdude.conf" -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
# Installing requires non-existing python312_d.lib from swig_avrdude.vcxproj
#- name: Install
# run: cmake --build build --target install
- name: Archive build artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -384,7 +451,18 @@ jobs:
- name: Build
run: cmake --build build
- name: "Dryrun test (not installed)"
run: printf "\n\n" | ./tools/test-avrdude -v -e build/src/avrdude.exe -c "-C build/src/avrdude.conf" -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
run: |
tmpdir="$PWD/tmp$$"
mkdir "$tmpdir"
echo "tmpdir=$tmpdir"
ls -lR "$tmpdir"
echo "TEMP=$TEMP"
ls -lR "$TEMP"
printf "\n\n" | ./tools/test-avrdude -v -t "$TEMP" -e build/src/avrdude.exe -c "-C build/src/avrdude.conf" -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Install
run: cmake --build build --target install
- name: "Dryrun test (installed)"
run: printf "\n\n" | ./tools/test-avrdude -v -t "$TEMP" -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Archive build artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit c3f387a

Please sign in to comment.