From 64446f095521fd74d90fc2dd7edf88b1b69cf490 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 18 Apr 2021 20:24:05 +0200 Subject: [PATCH] Update MacS-M1-make.yml build both --- .github/workflows/MacS-M1-make.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/MacS-M1-make.yml b/.github/workflows/MacS-M1-make.yml index 1cba368f42..f2455bb2e7 100644 --- a/.github/workflows/MacS-M1-make.yml +++ b/.github/workflows/MacS-M1-make.yml @@ -7,21 +7,33 @@ on: branches: [ master ] jobs: - build: - + build-and-test: + defaults: + run: + shell: /usr/bin/arch -arch ${{ matrix.arch }} /bin/bash -l {0} + runs-on: self-hosted + + env: + DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer + NSUnbufferedIO: YES + + strategy: + fail-fast: false + matrix: + arch: [arm64e, x86_64] steps: - uses: actions/checkout@v2 with: submodules: recursive - name: configure - run: arch -arm64 ./configure + run: ./configure - name: make - run: arch -arm64 make -j4 + run: make -j4 - name: make tests - run: arch -arm64 make -C tests - - name: run tests - run: pushd tests;arch -arm64 ./test;popd + run: make -j4 -C tests - name: make minimal sample - run: arch -arm64 make -C samples/minimal -f makefile.unx clean;arch -arm64 make -C samples/minimal -f makefile.unx + run: make -j4 -C samples/minimal -f makefile.unx clean;make -j4 -C samples/minimal -f makefile.unx + - name: run tests + run: pushd tests;./test;popd