Skip to content

Commit

Permalink
add macos m1 action
Browse files Browse the repository at this point in the history
  • Loading branch information
coolxv committed Feb 4, 2024
1 parent d9d1b7f commit 80351a5
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/make-test-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,27 @@ jobs:
echo "--- done RUNNING $f ---"
done
working-directory: ${{ github.workspace }}/test

- name: Build and run tests (Macos M1)
if: ${{ matrix.os == 'macos-14 [Beta]' }}
run: |
sysctl hw
make -f Makefile.linux64.clang
compiler=clang
for f in $(find . -type f -name "*.cpp"); do
if [[ -z "${f##*win.cpp}" ]]; then
continue
fi
f=${f%.cpp}
if [ ${compiler}="clang" ] && [[ $f == *virtual* ]]; then
continue
fi
echo "--- RUNNING $f ---"
printf '\x07' | dd of=${f} bs=1 seek=160 count=1 conv=notrunc
${f}
echo "--- done RUNNING $f ---"
done
working-directory: ${{ github.workspace }}/test
shell: bash

0 comments on commit 80351a5

Please sign in to comment.