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

View file

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