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
#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'