Skip to content

Commit 09fa7d8

Browse files
authored
Merge pull request iNavFlight#10604 from iNavFlight/mmosca-arm64-linux-support
Strip version number of inav_SITL binaries in artifacts
2 parents 6a1d7ea + f74275d commit 09fa7d8

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ jobs:
130130
echo "NUM_CORES=$(grep processor /proc/cpuinfo | wc -l)" >> $GITHUB_ENV
131131
- name: Build SITL
132132
run: mkdir -p build_SITL && cd build_SITL && cmake -DSITL=ON -DWARNINGS_AS_ERRORS=ON -G Ninja .. && ninja -j${{ env.NUM_CORES }}
133+
- name: Strip version number
134+
run: |
135+
for f in build_SITL/*_SITL; do
136+
mv $f $(echo $f | sed -e 's/_[0-9]\+\.[0-9]\+\.[0-9]\+//')
137+
done
133138
- name: Upload artifacts
134139
uses: actions/upload-artifact@v4
135140
with:
@@ -161,6 +166,11 @@ jobs:
161166
echo "NUM_CORES=$(grep processor /proc/cpuinfo | wc -l)" >> $GITHUB_ENV
162167
- name: Build SITL
163168
run: mkdir -p build_SITL && cd build_SITL && cmake -DSITL=ON -DWARNINGS_AS_ERRORS=ON -G Ninja .. && ninja -j${{ env.NUM_CORES }}
169+
- name: Strip version number
170+
run: |
171+
for f in build_SITL/*_SITL; do
172+
mv $f $(echo $f | sed -e 's/_[0-9]\+\.[0-9]\+\.[0-9]\+//')
173+
done
164174
- name: Upload artifacts
165175
uses: actions/upload-artifact@v4
166176
with:
@@ -197,7 +207,11 @@ jobs:
197207
mkdir -p build_SITL && cd build_SITL
198208
cmake -DSITL=ON -DWARNINGS_AS_ERRORS=ON -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -G Ninja ..
199209
ninja -j4
200-
210+
- name: Strip version number
211+
run: |
212+
for f in build_SITL/*_SITL; do
213+
mv $f $(echo $f | sed -e 's/_[0-9]\+\.[0-9]\+\.[0-9]\+//')
214+
done
201215
- name: Upload artifacts
202216
uses: actions/upload-artifact@v4
203217
with:
@@ -234,13 +248,17 @@ jobs:
234248
235249
- name: Build SITL
236250
run: mkdir -p build_SITL && cd build_SITL && cmake -DSITL=ON -DWARNINGS_AS_ERRORS=ON -G Ninja .. && ninja -j4
251+
- name: Strip version number
252+
run: |
253+
for f in ./build_SITL/*_SITL.exe; do
254+
mv $f $(echo $f | sed -e 's/_[0-9]\+\.[0-9]\+\.[0-9]\+//')
255+
done
237256
- name: Upload artifacts
238257
uses: actions/upload-artifact@v4
239258
with:
240259
name: ${{ env.BUILD_NAME }}_SITL-WIN
241260
path: ./build_SITL/*.exe
242261

243-
244262
test:
245263
#needs: [build]
246264
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)