Skip to content

Commit 4c69350

Browse files
committed
ci: Update macos github workflow for recent changes
* remove macos specific path/env settings and ct-ng config tweaks as they are now done in go.sh * Update filenames that now have os and machine in them. Signed-off-by: Kumar Gala <[email protected]>
1 parent 83fdae1 commit 4c69350

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/mac.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ jobs:
4343
gnu-tar help2man ncurses
4444
- name: "build ct-ng"
4545
run: |
46-
export HOMEBREW_ROOT="/usr/local"
47-
export PATH="$PATH:${HOMEBREW_ROOT}/opt/binutils/bin"
48-
export CPPFLAGS="-I${HOMEBREW_ROOT}/opt/ncurses/include -I${HOMEBREW_ROOT}/opt/gettext/include"
49-
export LDFLAGS="-L${HOMEBREW_ROOT}/opt/ncurses/lib -L${HOMEBREW_ROOT}/opt/gettext/lib"
5046
./go.sh cmake
5147
- name: "preload sources"
5248
run: |
@@ -65,8 +61,8 @@ jobs:
6561
- name: "upload cmake"
6662
uses: actions/upload-artifact@v2
6763
with:
68-
name: cmake.x86_64.tar.bz2
69-
path: /Volumes/CrossToolNGNew/cmake.x86_64.tar.bz2
64+
name: cmake.macos.x86_64.tar.bz2
65+
path: /Volumes/CrossToolNGNew/cmake.macos.x86_64.tar.bz2
7066
- name: "prep to upload"
7167
continue-on-error: true
7268
run: |
@@ -118,12 +114,6 @@ jobs:
118114
brew install autoconf automake bash binutils gawk gnu-sed \
119115
gnu-tar help2man ncurses pkg-config
120116
echo "$GITHUB_WORKSPACE/.local/bin" >> $GITHUB_PATH
121-
- name: "prep ${{ matrix.sample }}.config"
122-
run: |
123-
sed -i -e '/CT_GDB_CROSS_PYTHON_BINARY/d' configs/${{ matrix.sample }}.config
124-
sed -i -e '/CT_GDB_CROSS_BUILD_NO_PYTHON/d' configs/${{ matrix.sample }}.config
125-
sed -i -e '/^CT_CC_GCC_EXTRA_CONFIG_ARRAY=/ s/"$/ --without-zstd"/' configs/${{ matrix.sample }}.config
126-
echo "# CT_GDB_CROSS_PYTHON is not set" >> configs/${{ matrix.sample }}.config
127117
- name: "build ${{ matrix.sample }} for ${{ matrix.host }}"
128118
run: |
129119
./go.sh ${{ matrix.sample }}
@@ -134,10 +124,10 @@ jobs:
134124
cd /Volumes/CrossToolNGNew/build/output
135125
case "${TARGET}" in
136126
xtensa_*)
137-
tar --exclude='build.log.bz2' -jcvf ../../${TARGET}.$MACHINE.tar.bz2 xtensa/${TARGET#xtensa_}/*-zephyr-*;
127+
tar --exclude='build.log.bz2' -jcvf ../../${TARGET}.macos.$MACHINE.tar.bz2 xtensa/${TARGET#xtensa_}/*-zephyr-*;
138128
;;
139129
*)
140-
tar --exclude='build.log.bz2' -jcvf ../../${TARGET}.$MACHINE.tar.bz2 *-zephyr-*;
130+
tar --exclude='build.log.bz2' -jcvf ../../${TARGET}.macos.$MACHINE.tar.bz2 *-zephyr-*;
141131
;;
142132
esac
143133
- name: "upload xtensa build log"

0 commit comments

Comments
 (0)