another try at a workflow for m1

This commit is contained in:
John Cupitt 2021-07-23 13:55:04 +01:00
parent 3b2003a31a
commit 6ae68b9113

View File

@ -13,6 +13,8 @@ jobs:
name: [ "Linux x64 (Ubuntu 20.04) - GCC 10" ]
os: [ ubuntu-20.04 ]
sanitize: [ false ]
# overridden below for m1
shell: /bin/bash
build:
- { cc: gcc, cxx: g++, linker: ld }
include:
@ -28,12 +30,12 @@ jobs:
os: macos-m1
sanitize: false
build: { cc: clang, cxx: clang++, linker: ld.lld }
# disable rosetta on M1
shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
# disable rosetta on M1
defaults:
if: contains(matrix.os, 'm1')
run:
shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
shell: ${{ matrix.shell }}
steps:
- name: Checkout code