1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-12 05:16:30 +03:00

Fix root attribute in GitHub action.

This commit is contained in:
Ben Wolsieffer 2019-12-07 17:23:10 -05:00
parent 59b9f48433
commit e249b9e870
2 changed files with 9 additions and 3 deletions

View file

@ -1141,9 +1141,9 @@ function run() {
const parallelism = core.getInput('parallelism');
const cachixCache = core.getInput('cachix-cache');
const cachixSigningKey = core.getInput('cachix-signing-key');
//await cachix.install(nixpkgs)
yield cachix.install(nixpkgs);
core.startGroup(`Setting up Cachix cache: ${cachixCache}`);
//await cachix.use(cachixCache)
yield cachix.use(cachixCache);
if (cachixSigningKey !== "") {
core.exportVariable('CACHIX_SIGNING_KEY', cachixSigningKey);
}

View file

@ -2,11 +2,17 @@ name: "Build"
on:
push:
jobs:
tests:
build:
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- melodic
- dashing
steps:
- uses: actions/checkout@v1
- uses: cachix/install-nix-action@v6
- uses: ./.github/actions/nix-ros-build-action
with:
root-attribute: '${{ matrix.distro }}'
cachix-signing-key: '${{ secrets.CACHIX_SIGNING_KEY }}'