Skip to content

Commit

Permalink
try adding a macos CI runner
Browse files Browse the repository at this point in the history
Change-Id: I1e24d7ab1cb1f1df05fd3ba9ebb54c04be0908b9
  • Loading branch information
cooljeanius committed Oct 27, 2023
1 parent 71b940a commit 49d7e63
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/apple-gdb-1824-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: cooljeanius/apple-gdb-1824-macos
on:
push:
branches:
- "**/*"
pull_request:
jobs:
test:
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: brew update
- run: sudo apt-get install autogen libobjc2 objc-codegenutils objc-run objconv texi2html texinfo flex aarch64-elf-binutils arm-linux-gnueabihf-binutils arm-none-eabi-binutils binutils i686-elf-binutils riscv64-elf-binutils x86_64-elf-binutils x86_64-linux-gnu-binutils pax ncurses deja-gnu expect guile tcl-tk m4 osxutils dmalloc fastjar gdb gettext gperf help2man ant ant-contrib findutils grep coreutils
- run: test -e ./.profile_generic && source ./.profile_generic
- run: ./configure --enable-silent-rules
- run: make -ki -C libcheckpoint || make -ki -C libcheckpoint -f Makefile_orig || make -ki -C macsbug || make -ki -C macsbug/gdb_plugin_support || (if test -x "$(which ant)"; then ant; fi)
- run: cd src && ./configure --disable-werror --disable-opts-test --enable-carbon-framework --enable-debug-symbols-framework --enable-64-bit-bfd --enable-silent-rules
- run: cd src && make
- run: cd src && make check
- run: pwd
if: "${{ success() }}"
- run: find . -name config.log -print0 | xargs cat | grep -i error | sort | uniq
if: "${{ failure() }}"
strategy:
matrix:
compiler:
- clang
- gcc
7 changes: 5 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ jobs:
./configure --disable-werror --enable-silent-rules --disable-option-checking CFLAGS="-w" || stat -t ./configure; \
elif test ! -e Makefile && test -x ./config.status; then \
echo "checking with ./config.status in ${subdir}"; \
./config.status || stat -t ./config.status; \
./config.status CFLAGS="-w" || stat -t ./config.status; \
else \
echo "assuming we are fully configured in ${subdir}"; \
fi
for srcfile in *.c; do \
echo "attempting to use $(which make) to compile ${srcfile} in ${subdir}"; \
make "$(echo "${srcfile}" | sed "s/\.c/.o/g")" V=0 || stat -t "${srcfile}"; \
make "$(echo "${srcfile}" | sed "s/\.c/.o/g")" V=0 CFLAGS="-w" || stat -t "${srcfile}"; \
done; \
popd; \
elif test -d "${subdir}" && (test -r "${subdir}/Makefile.in" || test -r "${subdir}/Makefile.am" || test -r "${subdir}/Makefile.def" || test -r "${subdir}/Makefile.tpl"); then \
Expand Down Expand Up @@ -256,6 +256,7 @@ jobs:
done
# shellcheck disable=SC2044
for ccfile in $(find . -name '*.cc' -type f); do \
echo "One last attempt at compiling ${ccfile}..."; \
g++ -c "${ccfile}" || g++ -c -I. "${ccfile}" || g++ -c -I. -I.. "${ccfile}" || stat "${ccfile}"; \
done
if test -e gdb/testsuite/gdb.apple/Makefile; then \
Expand All @@ -267,6 +268,7 @@ jobs:
fi
# shellcheck disable=SC2044
for cppfile in $(find . -name '*.cpp' -type f); do \
echo "One last attempt at compiling ${cppfile}..."; \
g++ -c "${cppfile}" || g++ -c -I. "${cppfile}" || g++ -c -I. -I.. "${cppfile}" || stat "${cppfile}"; \
done
if test -e gdb/testsuite/gdb.base/Makefile && test -e gdb/testsuite/gdb.base/langs2.cxx; then \
Expand All @@ -277,6 +279,7 @@ jobs:
fi
# shellcheck disable=SC2044
for cxxfile in $(find . -name '*.cxx' -type f); do \
echo "One last attempt at compiling ${cxxfile}..."; \
g++ -c "${cxxfile}" || g++ -c -I. "${cxxfile}" || g++ -c -I. -I.. "${cxxfile}" || stat "${cxxfile}"; \
done
if test -e mmalloc/Makefile; then \
Expand Down
4 changes: 4 additions & 0 deletions src/gdb/testsuite/gdb.base/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
VPATH = @srcdir@
srcdir = @srcdir@

CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
DEFS = @DEFS@

EXECUTABLES = all-types annota1 bitfields break \
call-ar-st call-rt-st call-strs callfuncs callfwmall \
chng-syms commands compiler condbreak constvars coremaker \
Expand Down

0 comments on commit 49d7e63

Please sign in to comment.