Skip to content

Commit

Permalink
Merge pull request #90 from nix-community/github-actions-ci
Browse files Browse the repository at this point in the history
Use Github Actions for CI
  • Loading branch information
ctheune authored Jun 3, 2023
2 parents c0f8156 + b1aba38 commit 6bcc1bd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Nix build

on:
[push, pull_request]

jobs:
flake-default:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: nix-community
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: actions/checkout@v3
- name: Nix build
run: nix-build --show-trace
2 changes: 0 additions & 2 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# uses build in upstream nixpkgs
(pkgs.callPackage "${nixpkgs}/pkgs/tools/security/vulnix" {
python3Packages = pkgs.python37Packages;
python3Packages = pkgs.python311Packages;
}).overrideAttrs (
old: rec {
src = lib.cleanSource ./.;
Expand Down

0 comments on commit 6bcc1bd

Please sign in to comment.