CI: adapt for new macOS runner

- enforce x86-64 architecture
- use “sysctl -n hw.ncpu” instead of “nproc” (which has not been installed in
  the new runner)
master
Sébastien Villemot 2023-03-13 17:10:43 +01:00
parent 715ec9e4bc
commit ba78d0c813
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ build_macos_x86_64:
- macOS
script:
- autoreconf -si
- './configure CC=gcc-12 CXX=g++-12 LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison'
- make -j$(nproc)
- 'arch -x86_64 ./configure CC=gcc-12 CXX=g++-12 LEX=/usr/local/opt/flex/bin/flex YACC=/usr/local/opt/bison/bin/bison'
- arch -x86_64 make -j$(sysctl -n hw.ncpu)
artifacts:
paths:
- src/dynare-preprocessor