File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - ' development'
77 - ' devel/*'
88
9- env :
10- BUILD_TYPE : Release
11-
129jobs :
1310 build :
1411 runs-on : ubuntu-latest
1512
1613 strategy :
1714 matrix :
1815 board : [BOARD_HIDPICO_REV2, BOARD_HIDPICO_REV4]
16+ build-type : [Release, Debug]
1917
2018 steps :
2119 - name : Additional dependencies
2927 submodules : recursive
3028
3129 - name : Run cmake
32- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE }} -DBOARD_TYPE=${{matrix.board}}
30+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build-type }} -DBOARD_TYPE=${{matrix.board}}
3331
3432 - name : Build
35- run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
33+ run : cmake --build ${{github.workspace}}/build --config ${{matrix.build-type}}
34+
35+ - name : Copy build artifacts to output
36+ run : |
37+ mkdir -p output
38+ if test "${{github.ref_type}}" = "tag"; then
39+ _build_id="${{github.ref_name}}"
40+ else
41+ _build_id="${{github.sha}}"
42+ fi
43+ _destfile_prefix="amigahid-pico-${{matrix.build-type}}-${{matrix.board}}-${_build_id}"
44+ cp -v "build/src/amigahid-pico.elf" "output/${_destfile_prefix}.elf"
45+ cp -v "build/src/amigahid-pico.uf2" "output/${_destfile_prefix}.uf2"
46+
47+ - name : Upload artifacts for build
48+ uses : actions/upload-artifacts@v7
49+ with :
50+ name : Binary build
51+ path : output/*
You can’t perform that action at this time.
0 commit comments