diff options
author | kcgen <kcgen@users.noreply.github.com> | 2022-08-18 21:56:39 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2022-08-19 19:11:38 +0300 |
commit | f3fcc361270ac9e11ce916f838ce606fb553ada8 (patch) | |
tree | d8a084b9bdb312cd8b0cf41f230112d78ee519cb /.github | |
parent | 47d2866d4ff8139a2d234b254d4c56fac8b7513b (diff) |
Use default environment in macOS CI builds
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/macos.yml | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 686d38a1a..92b378458 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,6 +21,7 @@ jobs: needs_deps: true packages: meson build_flags: -Dbuildtype=debug -Dunit_tests=disabled -Ddefault_library=shared + brew_path: /usr/local/homebrew max_warnings: 0 - name: GCC 11 @@ -29,6 +30,7 @@ jobs: needs_deps: true packages: gcc@11 build_flags: -Dbuildtype=debug -Dunit_tests=disabled --native-file=.github/meson/native-gcc-11.ini + brew_path: /usr/local/homebrew max_warnings: 0 - name: Clang, +tests (macOS 12) @@ -36,6 +38,7 @@ jobs: arch: x86_64 needs_deps: true build_flags: -Dbuildtype=debug -Ddefault_library=shared + brew_path: /usr/local/homebrew run_tests: true max_warnings: -1 @@ -44,6 +47,7 @@ jobs: arch: x86_64 needs_deps: true build_flags: -Denable_debugger=normal -Ddefault_library=shared + brew_path: /usr/local/homebrew max_warnings: 0 - name: Clang @@ -52,6 +56,7 @@ jobs: needs_deps: false packages: meson build_flags: -Dbuildtype=debug -Dunit_tests=disabled -Ddefault_library=shared + brew_path: /opt/homebrew max_warnings: 0 steps: @@ -115,25 +120,24 @@ jobs: path: subprojects/packagecache key: subprojects-${{ hashFiles('subprojects/*.wrap') }} - - name: Log environment - run: arch -arch=${{ matrix.conf.arch }} ./scripts/log-env.sh - - - run: arch -arch=${{ matrix.conf.arch }} ./scripts/retry_command.sh 3 meson setup ${{ matrix.conf.build_flags }} build - - - name: Build + - name: Setup and build run: | set -xo pipefail - arch -arch=${{ matrix.conf.arch }} meson compile -C build 2>&1 | tee build.log + export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" + eval "$(${{ matrix.conf.brew_path }}/bin/brew shellenv)" + ./scripts/log-env.sh + ./scripts/retry_command.sh 3 meson setup ${{ matrix.conf.build_flags }} build + meson compile -C build 2>&1 | tee build.log - name: Run tests if: matrix.conf.run_tests - run: arch -arch=${{ matrix.conf.arch }} meson test -C build --print-errorlogs + run: meson test -C build --print-errorlogs - name: Summarize warnings if: matrix.conf.run_tests != true env: MAX_WARNINGS: ${{ matrix.conf.max_warnings }} - run: arch -arch=${{ matrix.conf.arch }} python3 ./scripts/count-warnings.py -lf build.log + run: python3 ./scripts/count-warnings.py -lf build.log build_macos_release: name: Release build (${{ matrix.runner.arch }}) |