From 1c67807b0b7820f38544d580b56a6bf1bd8037b9 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Fri, 2 Feb 2024 18:29:38 -0600 Subject: [PATCH] move brew before sudo --- .github/workflows/actions.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 50b7e4f..0889faa 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -51,6 +51,14 @@ jobs: #- macos-11 runs-on: ${{ matrix.os }} steps: + - name: install deps + run: | + brew update + brew install --force-bottle criterion + env: + HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: yes + HOMEBREW_NO_ENV_HINTS: yes + HOMEBREW_NO_ANALYTICS: yes - uses: actions/checkout@v4 with: repository: getargv/getargv @@ -65,32 +73,16 @@ jobs: - uses: actions/checkout@v4 with: path: getargv.cpp - - name: install deps - run: | - brew update - brew install --force-bottle criterion - env: - HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: yes - HOMEBREW_NO_ENV_HINTS: yes - HOMEBREW_NO_ANALYTICS: yes - name: build unit tests run: make lib_unit_tests working-directory: getargv.cpp/test - name: build libtests - run: | - make libtest1 - make libtest2 + run: make libtest1 libtest2 working-directory: getargv.cpp/test - name: run tests with coverage - if: matrix.os != 'macos-10.15' run: make run_lib_unit_tests_coverage timeout-minutes: 5 working-directory: getargv.cpp/test - - name: run tests without coverage - if: matrix.os == 'macos-10.15' - run: make run_lib_unit_tests - timeout-minutes: 5 - working-directory: getargv.cpp/test build: name: Build on ${{ matrix.os }}