mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-09-19 22:01:54 +00:00
ci: Add workflow for building flake.nix
(#2910)
* ci: Add workflow for building flake.nix This will build all flake outputs, which primarily is a devShell. It uses https://omnix.page/om/ci.html to build. * ci(nix): Use nix cache to reduce CI times * ci(nix): Run `cargo build` to test devShell
This commit is contained in:
parent
9bf94a1636
commit
14ce786d98
1 changed files with 23 additions and 0 deletions
23
.github/workflows/nix.yml
vendored
Normal file
23
.github/workflows/nix.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: "Nix CI"
|
||||
on:
|
||||
# Run only when pushing to mainline, and making PRs
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- name: Install omnix
|
||||
run: nix --accept-flake-config profile install "github:juspay/omnix"
|
||||
- name: Build all flake outputs
|
||||
run: om ci
|
||||
- name: Ensure devShell has all build deps
|
||||
run: nix develop -c cargo build -p dioxus-cli
|
Loading…
Reference in a new issue