mirror of
https://github.com/oppiliappan/statix.git
synced 2024-08-16 12:40:35 +03:00
fix ci (#67)
* bump cachix action * temporarily disable cachix * remove deprecated overlay syntax * update ci
This commit is contained in:
parent
6463c05411
commit
9cb88dd5d1
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@ -1,36 +1,18 @@
|
|||||||
name: build
|
name: "Test"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
tests:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
nix:
|
|
||||||
- name: 2.5.1
|
|
||||||
url: https://releases.nixos.org/nix/nix-2.5.1/install
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.5
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v15
|
- uses: cachix/install-nix-action@v18
|
||||||
with:
|
with:
|
||||||
install_url: ${{ matrix.nix.url }}
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
extra_nix_config: |
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
|
|
||||||
- name: enable binary cache
|
|
||||||
uses: cachix/cachix-action@v10
|
|
||||||
with:
|
|
||||||
name: statix
|
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
||||||
|
|
||||||
- run: nix flake check
|
|
||||||
|
|
||||||
# this also includes `cargo test`
|
|
||||||
- name: build statix
|
- name: build statix
|
||||||
run: nix build -L
|
run: nix build -L
|
||||||
|
- name: test statix
|
||||||
- name: build and install statix with flake-compat
|
run: nix flake check
|
||||||
|
- name: build statix and install statix in flake-compat mode
|
||||||
run: nix-env -if default.nix
|
run: nix-env -if default.nix
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
nixpkgsFor = forAllSystems (system:
|
nixpkgsFor = forAllSystems (system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [ self.overlay ];
|
overlays = [ self.overlays.default ];
|
||||||
});
|
});
|
||||||
|
|
||||||
chanspec = {
|
chanspec = {
|
||||||
@ -42,7 +42,7 @@
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
overlay = final: prev: {
|
overlays.default = final: prev: {
|
||||||
|
|
||||||
statix = with final;
|
statix = with final;
|
||||||
let
|
let
|
||||||
|
Loading…
Reference in New Issue
Block a user