Skip to content

Commit

Permalink
README.md: use arduino-ci from nixpkgs
Browse files Browse the repository at this point in the history
Now that arduino-ci is packaged in nixpkgs, we do not need to clone
the repository to run it!
  • Loading branch information
RyanTM (Pololu) committed Dec 14, 2020
1 parent 709412b commit 2ed58cd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ jobs:
steps:
- name: Checkout this repository
uses: actions/[email protected]
- name: Checkout arduino-ci
uses: actions/[email protected]
with:
repository: pololu/arduino-ci
path: ci
- name: Cache for arduino-ci
uses: actions/[email protected]
with:
Expand All @@ -39,7 +34,7 @@ jobs:
key: ${{ runner.os }}-arduino
- name: Install nix
uses: cachix/install-nix-action@v12
- run: ci/ci
- run: nix-shell -I nixpkgs=channel:nixpkgs-unstable -p arduino-ci --run "arduino-ci"
```
## Gitlab example
Expand All @@ -55,9 +50,7 @@ stages:
ci:
stage: ci
script:
- nix-env -f https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz -iA git bash
- git clone https://github.com/pololu/arduino-ci ci
- ci/ci
- nix-shell -I nixpkgs=channel:nixpkgs-unstable -p arduino-ci --run "arduino-ci"
```

# Defaults
Expand Down

0 comments on commit 2ed58cd

Please sign in to comment.