Skip to content

Commit 6ff84fa

Browse files
committed
ci: Fixup github mac action based on latest ci changes
Update the github mac action to match how go.sh and the other scripts now work. Signed-off-by: Kumar Gala <[email protected]>
1 parent 0ab0b36 commit 6ff84fa

File tree

1 file changed

+7
-26
lines changed

1 file changed

+7
-26
lines changed

.github/workflows/mac.yml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
uses: actions/upload-artifact@v2
6060
with:
6161
name: cmake.macos.x86_64.tar.bz2
62-
path: /Volumes/CrossToolNGNew/cmake.macos.x86_64.tar.bz2
62+
path: cmake.macos.x86_64.tar.bz2
6363
- name: "prep to upload"
6464
continue-on-error: true
6565
run: |
@@ -114,36 +114,17 @@ jobs:
114114
- name: "build ${{ matrix.sample }} for ${{ matrix.host }}"
115115
run: |
116116
./go.sh ${{ matrix.sample }}
117-
- name: "tar"
118-
run: |
119-
export TARGET=${{ matrix.sample }}
120-
export MACHINE=$(uname -m)
121-
cd /Volumes/CrossToolNGNew/build/output
122-
case "${TARGET}" in
123-
xtensa_*)
124-
tar --exclude='build.log.bz2' -jcvf ../../${TARGET}.macos.$MACHINE.tar.bz2 xtensa/${TARGET#xtensa_}/*-zephyr-*;
125-
;;
126-
*)
127-
tar --exclude='build.log.bz2' -jcvf ../../${TARGET}.macos.$MACHINE.tar.bz2 *-zephyr-*;
128-
;;
129-
esac
130-
- name: "upload xtensa build log"
131-
if: ${{ always() && startsWith(matrix.sample, 'xtensa') }}
132-
uses: actions/upload-artifact@v2
133-
with:
134-
name: "${{ matrix.sample }}.${{ matrix.host }}.log"
135-
path: /Volumes/CrossToolNGNew/build/output/xtensa/*/*-zephyr-*/build.log.bz2
136-
- name: "upload not-xtensa build log"
137-
if: ${{ always() && !startsWith(matrix.sample, 'xtensa') }}
117+
ls -lstr
118+
- name: "upload build log"
138119
uses: actions/upload-artifact@v2
139120
with:
140121
name: "${{ matrix.sample }}.${{ matrix.host }}.log"
141-
path: /Volumes/CrossToolNGNew/build/output/*-zephyr-*/build.log.bz2
122+
path: /Volumes/CrossToolNGNew/build/output/build.*.log.bz2
142123
- name: "upload toolchain tarball"
143124
uses: actions/upload-artifact@v2
144125
with:
145-
name: "${{ matrix.sample }}.x86_64.tar.bz2"
146-
path: /Volumes/CrossToolNGNew/${{ matrix.sample }}.x86_64.tar.bz2
126+
name: "${{ matrix.sample }}.macos.x86_64.tar.bz2"
127+
path: ${{ matrix.sample }}.macos.x86_64.tar.bz2
147128

148129
# Create the actual zephyr toolchain and SDK packages
149130
package:
@@ -174,7 +155,7 @@ jobs:
174155
- name: "build toolchains"
175156
run: |
176157
cd scripts
177-
./make_zephyr_sdk.sh x86_64
158+
./make_zephyr_sdk.sh macos x86_64
178159
- name: "upload toolchains"
179160
uses: actions/upload-artifact@v2
180161
with:

0 commit comments

Comments
 (0)