From 087a203ba0c253512c4fd965ae9714b3284cdd78 Mon Sep 17 00:00:00 2001 From: hsaturn Date: Wed, 21 Apr 2021 00:56:49 +0200 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..79f247e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: "CI" +on: + pull_request: + push: +jobs: + ci: + runs-on: ubuntu-20.04 + steps: + - name: Checkout this repository + uses: actions/checkout@v2.3.4 + - name: Cache for arduino-ci + uses: actions/cache@v2.1.3 + with: + path: | + ~/.arduino15 + key: ${{ runner.os }}-arduino + - name: Install nix + uses: cachix/install-nix-action@v12 + - run: nix-shell -I nixpkgs=channel:nixpkgs-unstable -p arduino-ci --run "arduino-ci"