ci: Seperate out out copying nextflow to bin

This commit is contained in:
Edmund Miller 2021-04-12 14:40:36 -05:00
parent 9f6641f80f
commit bf165afd16
No known key found for this signature in database
GPG key ID: BD387FF7BC10AA9D
2 changed files with 11 additions and 8 deletions

View file

@ -56,16 +56,18 @@ jobs:
- uses: actions/cache@v2
id: cache-nextflow
with:
path: /usr/local/bin/nextflow
path: nextflow
key: ${{ runner.os }}-nextflow
- name: Install Nextflow
if: steps.cache-nextflow.outputs.cache-hit != 'true'
env:
NXF_VER: ${{ matrix.nxf_version }}
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
run: wget -qO- get.nextflow.io | bash
- name: Copy nextflow to bin
run: sudo cp nextflow /usr/local/bin/
- name: Lint ${{ matrix.tags }}
run: nf-core modules lint . -t ${{ matrix.tags }}

View file

@ -51,7 +51,7 @@ jobs:
- uses: actions/cache@v2
id: cache-nextflow
with:
path: /usr/local/bin/nextflow
path: nextflow
key: ${{ runner.os }}-nextflow
- name: Install Nextflow
@ -59,9 +59,10 @@ jobs:
env:
NXF_VER: ${{ matrix.nxf_version }}
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
run: wget -qO- get.nextflow.io | bash
- name: Copy nextflow to bin
run: sudo cp nextflow /usr/local/bin/
- name: Set up Singularity
if: matrix.profile == 'singularity'