@@ -62,23 +62,23 @@ jobs:
62
62
repository : raspberrypi/pico-sdk
63
63
path : pico-sdk
64
64
65
- - name : set env vars
65
+ - name : Set env vars
66
66
run : |
67
67
echo "LIBUSBUDEV=/opt/lib/${{ matrix.cross_compile }}/libusbudev.a" >> $GITHUB_ENV
68
68
echo "PICO_SDK_PATH=${GITHUB_WORKSPACE}/pico-sdk" >> $GITHUB_ENV
69
69
if : matrix.os != 'darwin'
70
70
71
- - name : set env vars for macos
71
+ - name : Set env vars for macos
72
72
run : |
73
73
echo "LIBUSBUDEV=$LIBUSB_DIR.libs/libusb-1.0.a" >> $GITHUB_ENV
74
74
echo "PICO_SDK_PATH=${GITHUB_WORKSPACE}/pico-sdk" >> $GITHUB_ENV
75
75
if : matrix.os == 'darwin'
76
76
77
- - name : set env var for win
77
+ - name : Set env var for win
78
78
run : echo "CFLAGS="-mno-ms-bitfields $CFLAGS"" >> $GITHUB_ENV
79
79
if : matrix.os == 'windows'
80
80
81
- - name : build picotool
81
+ - name : Build picotool
82
82
run : |
83
83
cd $GITHUB_WORKSPACE/picotool
84
84
git apply $GITHUB_WORKSPACE/rp2040tools/patches/picotool_cmakelists.patch
90
90
mv picotool${{ matrix.extension }} /tmp/
91
91
if : matrix.os != 'darwin'
92
92
93
- - name : build picotool for macos
93
+ - name : Build picotool for macos
94
94
run : |
95
95
cd $GITHUB_WORKSPACE/picotool
96
96
mkdir build
@@ -100,7 +100,7 @@ jobs:
100
100
mv picotool${{ matrix.extension }} /tmp/
101
101
if : matrix.os == 'darwin'
102
102
103
- - name : build elf2uf2
103
+ - name : Build elf2uf2
104
104
run : |
105
105
cd $GITHUB_WORKSPACE/pico-sdk/tools/elf2uf2/
106
106
git apply $GITHUB_WORKSPACE/rp2040tools/patches/elf2uf2_cmakelists.patch
@@ -111,7 +111,7 @@ jobs:
111
111
mv elf2uf2${{ matrix.extension }} /tmp/
112
112
if : matrix.os != 'darwin'
113
113
114
- - name : build elf2uf2 for macos
114
+ - name : Build elf2uf2 for macos
115
115
run : |
116
116
cd $GITHUB_WORKSPACE/pico-sdk/tools/elf2uf2/
117
117
mkdir build
@@ -121,10 +121,60 @@ jobs:
121
121
mv elf2uf2${{ matrix.extension }} /tmp/
122
122
if : matrix.os == 'darwin'
123
123
124
- - name : upload artifacts
124
+ - name : Upload artifacts
125
125
uses : actions/upload-artifact@v2
126
126
with :
127
- name : ${{matrix.os}}_${{matrix.arch}}
127
+ name : tools_ ${{matrix.os}}_${{matrix.arch}}
128
128
path : |
129
129
/tmp/elf2uf2${{ matrix.extension }}
130
130
/tmp/picotool${{ matrix.extension }}
131
+
132
+ build-go :
133
+ runs-on :
134
+ ubuntu-latest
135
+ strategy :
136
+ matrix :
137
+ os : [linux, darwin, windows]
138
+ arch : [amd64]
139
+ include :
140
+ - os : linux
141
+ - os : linux
142
+ arch : 386
143
+ - os : linux
144
+ arch : arm
145
+ - os : linux
146
+ arch : arm64
147
+ - os : darwin
148
+ - os : windows
149
+ arch : 386
150
+ extension : .exe
151
+ exclude :
152
+ - os : windows
153
+ arch : amd64
154
+ steps :
155
+ - name : Checkout rp2040tools repository
156
+ uses : actions/checkout@v2
157
+ with :
158
+ repository : arduino/rp2040tools
159
+ token : ${{ secrets.RP2040_CI_PAT }}
160
+
161
+ - name : Install Go
162
+ uses : actions/setup-go@v2
163
+ with :
164
+ go-version : " 1.15.8"
165
+
166
+ - name : Build rp2040load
167
+ run : go build
168
+ env :
169
+ GOOS : ${{ matrix.os }}
170
+ GOARCH : ${{ matrix.arch }}
171
+ CGO_ENABLED : 0
172
+
173
+ - name : Debug print
174
+ run : file rp2040load${{ matrix.extension }}
175
+
176
+ - name : Upload artifacts
177
+ uses : actions/upload-artifact@v2
178
+ with :
179
+ name : rp2040load_${{matrix.os}}_${{matrix.arch}}
180
+ path : rp2040load${{ matrix.extension }}
0 commit comments