Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
* Version updates to several GitHub Actions
* Updated evaluation of `matrix.upload_artifact`
  • Loading branch information
ArtemSokolov authored Oct 18, 2024
1 parent ec49946 commit 2593bc3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Nextflow
run: curl -fsSL get.nextflow.io | bash

# Exemplars will be cached
- name: Exemplar-001 cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-ex001
with:
path: ~/data/exemplar-001
key: ex001-2022-02-24
- name: Exemplar-001 (w/ autofluorescence) cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-ex001-af
with:
path: ~/data/af/exemplar-001
key: ex001-af-2023-01-14
- name: Exemplar-002 cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache-ex002
with:
path: ~/data/exemplar-002
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Singularity
uses: eWaterCycle/setup-singularity@v7
if: ${{ contains(matrix.params, 'singularity') }}
Expand All @@ -92,13 +92,13 @@ jobs:
- name: Install Nextflow
run: curl -fsSL get.nextflow.io | bash
- name: Restore exemplar-001 cache
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ !contains(matrix.params, 'background') }}
with:
path: ~/data/exemplar-001
key: ex001-2022-02-24
- name: Restore exemplar-001 (w/ autofluorescence) cache
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ contains(matrix.params, 'background') }}
with:
path: ~/data/af/exemplar-001
Expand All @@ -113,7 +113,7 @@ jobs:
ls -R ~/data/exemplar-001
- name: Upload processed result
uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'push' && matrix.upload_artifact == 'true' }}
if: ${{ github.event_name == 'push' && matrix.upload_artifact }}
with:
name: exemplar-001
path: |
Expand All @@ -126,11 +126,11 @@ jobs:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Nextflow
run: curl -fsSL get.nextflow.io | bash
- name: Restore exemplar-001 cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/data/exemplar-001
key: ex001-2022-02-24
Expand All @@ -155,11 +155,11 @@ jobs:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Nextflow
run: curl -fsSL get.nextflow.io | bash
- name: Restore exemplar-002 cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/data/exemplar-002
key: ex002-2022-02-24
Expand Down

0 comments on commit 2593bc3

Please sign in to comment.