appvm/.github/workflows/ubuntu.yml

34 lines
602 B
YAML
Raw Normal View History

2019-12-29 19:21:40 +00:00
name: Ubuntu
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: |
2020-06-18 15:27:16 +00:00
curl -L https://nixos.org/nix/install | sh
2020-01-05 06:16:37 +00:00
. ~/.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