File tree 1 file changed +17
-0
lines changed 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -107,13 +107,30 @@ jobs:
107
107
make
108
108
mv elf2uf2${{ matrix.config.extension }} /tmp/
109
109
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
+
110
126
- name : Upload artifacts
111
127
uses : actions/upload-artifact@v2
112
128
with :
113
129
name : tools_${{matrix.config.os}}_${{matrix.config.arch}}
114
130
path : |
115
131
/tmp/elf2uf2${{ matrix.config.extension }}
116
132
/tmp/picotool${{ matrix.config.extension }}
133
+ /tmp/pioasm${{ matrix.config.extension }}
117
134
118
135
build-go :
119
136
name : build-go (${{ matrix.config.os }}, ${{ matrix.config.arch }})
You can’t perform that action at this time.
0 commit comments