From 67af67278e4f498c24a9a24248f9e7da4269dece Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Tue, 5 Sep 2023 17:23:29 +0000 Subject: [PATCH] ci: use nix instead of brew for macOS workflow Since brew has been failing frequently lately, use the nix action instead. Signed-off-by: Rafael Kitover --- .github/workflows/macos-build.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml index b342eb46..b0c71538 100644 --- a/.github/workflows/macos-build.yml +++ b/.github/workflows/macos-build.yml @@ -1,6 +1,6 @@ name: macOS Latest Build -#on: [push, pull_request] -on: workflow_dispatch +on: [push, pull_request] +#on: workflow_dispatch jobs: build: @@ -15,14 +15,13 @@ jobs: uses: actions/checkout@v2 with: submodules: recursive - - - name: Install Dependencies - run: >- - bash installdeps - + - name: Install nix + uses: cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-unstable - name: Configure run: >- - cmake -B build -G Ninja ${{ matrix.cmake_build }} ${{ matrix.cmake_options }} - + nix-shell --command 'cmake -B build -G Ninja ${{ matrix.cmake_build }} ${{ matrix.cmake_options }}' - name: Build - run: ninja -C build + run: >- + nix-shell --command 'ninja -C build'