File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -107,13 +107,30 @@ jobs:
107107 make
108108 mv elf2uf2${{ matrix.config.extension }} /tmp/
109109
110+ - name : Build pioasm
111+ run : |
112+ cd $GITHUB_WORKSPACE/pico-sdk/tools/pioasm/
113+ if ls $GITHUB_WORKSPACE/rp2040tools/patches/pioasm_*.patch 1> /dev/null 2>&1
114+ then git apply $GITHUB_WORKSPACE/rp2040tools/patches/pioasm_*.patch
115+ fi
116+ mkdir build
117+ cd build
118+ if [ "${{ matrix.config.os }}" = "darwin" ]; then
119+ cmake -DCMAKE_C_COMPILER=${{ matrix.config.cross_compiler }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cross_compiler }}++ -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -framework IOKit -framework Cocoa" ..
120+ else
121+ cmake -DCMAKE_C_COMPILER=${{ matrix.config.cross_compile }}-gcc -DCMAKE_CXX_COMPILER=${{ matrix.config.cross_compile }}-g++ -DCMAKE_EXE_LINKER_FLAGS="-static-libgcc -static-libstdc++" ..
122+ fi
123+ make
124+ mv pioasm${{ matrix.config.extension }} /tmp/
125+
110126 - name : Upload artifacts
111127 uses : actions/upload-artifact@v2
112128 with :
113129 name : tools_${{matrix.config.os}}_${{matrix.config.arch}}
114130 path : |
115131 /tmp/elf2uf2${{ matrix.config.extension }}
116132 /tmp/picotool${{ matrix.config.extension }}
133+ /tmp/pioasm${{ matrix.config.extension }}
117134
118135 build-go :
119136 name : build-go (${{ matrix.config.os }}, ${{ matrix.config.arch }})
You can’t perform that action at this time.
0 commit comments