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 <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2023-09-05 17:23:29 +00:00
parent e17d2cbaf5
commit 67af67278e
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 9 additions and 10 deletions

View File

@ -1,6 +1,6 @@
name: macOS Latest Build name: macOS Latest Build
#on: [push, pull_request] on: [push, pull_request]
on: workflow_dispatch #on: workflow_dispatch
jobs: jobs:
build: build:
@ -15,14 +15,13 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: recursive submodules: recursive
- name: Install nix
- name: Install Dependencies uses: cachix/install-nix-action@v22
run: >- with:
bash installdeps nix_path: nixpkgs=channel:nixos-unstable
- name: Configure - name: Configure
run: >- 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 - name: Build
run: ninja -C build run: >-
nix-shell --command 'ninja -C build'