another try at a workflow for m1
This commit is contained in:
parent
3b2003a31a
commit
6ae68b9113
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -13,6 +13,8 @@ jobs:
|
|||||||
name: [ "Linux x64 (Ubuntu 20.04) - GCC 10" ]
|
name: [ "Linux x64 (Ubuntu 20.04) - GCC 10" ]
|
||||||
os: [ ubuntu-20.04 ]
|
os: [ ubuntu-20.04 ]
|
||||||
sanitize: [ false ]
|
sanitize: [ false ]
|
||||||
|
# overridden below for m1
|
||||||
|
shell: /bin/bash
|
||||||
build:
|
build:
|
||||||
- { cc: gcc, cxx: g++, linker: ld }
|
- { cc: gcc, cxx: g++, linker: ld }
|
||||||
include:
|
include:
|
||||||
@ -28,12 +30,12 @@ jobs:
|
|||||||
os: macos-m1
|
os: macos-m1
|
||||||
sanitize: false
|
sanitize: false
|
||||||
build: { cc: clang, cxx: clang++, linker: ld.lld }
|
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:
|
defaults:
|
||||||
if: contains(matrix.os, 'm1')
|
|
||||||
run:
|
run:
|
||||||
shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
|
shell: ${{ matrix.shell }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
Loading…
Reference in New Issue
Block a user