Skip to content

Commit

Permalink
ci: Introduce nix builds
Browse files Browse the repository at this point in the history
Signed-off-by: Shinyzenith <[email protected]>
  • Loading branch information
Shinyzenith committed Dec 7, 2023
1 parent d2db6b9 commit 960abd7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build Waysip (nix)

on: [push, pull_request]
jobs:
nix:
name: "Build Waysip"
runs-on: ubuntu-latest
steps:
- name: Checkout Waysip
uses: actions/checkout@v3

- name: install nix
uses: cachix/install-nix-action@v20
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
- name: Build Nextctl-rs
run: |
nix develop --command cargo build --release --verbose
- name: Formatting Check
run: |
nix develop --verbose --command cargo check
nix develop --verbose --command cargo clippy
nix develop --verbose --command cargo fmt
6 changes: 4 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
- uses: actions/checkout@v3
- name: Install deps
run: sudo apt install -y libpango1.0-dev libcairo2-dev

- name: Build
run: cargo build --verbose
run: cargo build --verbose --release

- name: Run tests
run: cargo test --verbose
run: cargo test --verbose --release

0 comments on commit 960abd7

Please sign in to comment.