Skip to content

Commit

Permalink
XXX ci: Try running avrdude almost everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Aug 14, 2024
1 parent 0987d24 commit 84a1cd4
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ jobs:
-B build
- name: Build
run: cmake --build build
- name: Run the built avrdude before installing
run: ./build/src/avrdude --help
- name: Install
run: sudo cmake --build build --target install
- name: Dryrun_test
run: printf "\n\n" | ./tools/test-avrdude -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Archive build artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -269,15 +275,22 @@ 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: Run the built avrdude before installing
run: ./_ambuild/src/avrdude --help
- name: Install
run: sudo make -C _ambuild install
- name: Dryrun_test
run: printf "\n\n" | ./tools/test-avrdude -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"

msvc:
runs-on: windows-latest
strategy:
Expand Down Expand Up @@ -309,6 +322,10 @@ jobs:
-B build
- name: Build
run: cmake --build build --config ${{env.BUILD_TYPE}}
- name: Install
run: cmake --build build --target install
- name: Dryrun_test
run: printf "\n\n" | ./tools/test-avrdude -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Archive build artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -370,6 +387,10 @@ jobs:
-B build
- name: Build
run: cmake --build build
- name: Install
run: sudo cmake --build build --target install
- name: Dryrun_test
run: printf "\n\n" | ./tools/test-avrdude -d0 -p"-cdryrun -pm2560" -p"-cdryrun -pavr64du28"
- name: Archive build artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 84a1cd4

Please sign in to comment.