mirror of
https://github.com/awakesecurity/hocker.git
synced 2024-11-22 02:12:35 +03:00
Set up CI with GitHub Actions
This commit is contained in:
parent
e47269d1b6
commit
b9bc5993aa
40
.github/workflows/ci.yml
vendored
Normal file
40
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
name: ci
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.4
|
||||
name: Checkout
|
||||
- uses: cachix/install-nix-action@v12
|
||||
name: Install Nix
|
||||
with:
|
||||
nix_path: nixpkgs=./nix/pkgs.nix
|
||||
- uses: cachix/cachix-action@v8
|
||||
name: Set up Cachix
|
||||
with:
|
||||
name: awakesecurity
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: nix-build
|
||||
name: nix-build
|
||||
|
||||
build-macos:
|
||||
runs-on: macos-10.15
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.4
|
||||
name: Checkout
|
||||
- uses: cachix/install-nix-action@v12
|
||||
name: Install Nix
|
||||
with:
|
||||
nix_path: nixpkgs=./nix/pkgs.nix
|
||||
- uses: cachix/cachix-action@v8
|
||||
name: Set up Cachix
|
||||
with:
|
||||
name: awakesecurity
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: nix-build
|
||||
name: nix-build
|
Loading…
Reference in New Issue
Block a user