2019-12-29 19:21:40 +00:00
|
|
|
name: Ubuntu
|
|
|
|
|
2020-01-31 08:03:05 +00:00
|
|
|
on: [push, pull_request]
|
2019-12-29 19:21:40 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
2019-12-29 19:28:59 +00:00
|
|
|
- name: Fetch dependencies
|
2019-12-29 19:31:12 +00:00
|
|
|
run: go get -d ./...
|
2019-12-29 19:28:59 +00:00
|
|
|
|
2019-12-29 19:21:40 +00:00
|
|
|
- name: Build
|
|
|
|
run: go build
|
2020-01-05 06:13:56 +00:00
|
|
|
|
|
|
|
nix-build:
|
|
|
|
name: nix-build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Install Nix
|
2020-01-05 06:16:37 +00:00
|
|
|
run: |
|
|
|
|
curl https://nixos.org/nix/install | sh
|
|
|
|
. ~/.nix-profile/etc/profile.d/nix.sh
|
|
|
|
nix-channel --update
|
2020-01-05 06:13:56 +00:00
|
|
|
|
|
|
|
- name: Build
|
2020-01-05 06:16:37 +00:00
|
|
|
run: |
|
|
|
|
. ~/.nix-profile/etc/profile.d/nix.sh
|
|
|
|
make nix
|