From d3422b14439c615058ea4eb7636ba432a2a5c023 Mon Sep 17 00:00:00 2001 From: Rien Maertens Date: Thu, 4 Nov 2021 19:52:59 +0100 Subject: [PATCH] Add workflow to build rust binary --- .github/workflows/check.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a468cde..a4bf63c 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -33,3 +33,19 @@ jobs: - name: Shell Formatter run: docker run -v $GITHUB_WORKSPACE:/mnt -w /mnt mvdan/shfmt -d reStream.sh + + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - uses: cachix/install-nix-action@v14.1 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - run: nix-shell + - run: cargo build