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:
parent
e17d2cbaf5
commit
67af67278e
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue