Skip to content

Commit

Permalink
set the variable manually
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Dec 3, 2024
1 parent 00b8ae0 commit a604cb5
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-lint-wf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ${{ github.event.inputs.runners || github.run_number > 1 && 'ubuntu-latest' || 'self-hosted' }}
env:
NXF_ANSI_LOG: false
JAVA_HOME: $JAVA_HOME_21_X64

strategy:
matrix:
NXF_VER:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/create-test-lint-wf-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ concurrency:

env:
NXF_ANSI_LOG: false
JAVA_HOME: $JAVA_HOME_21_X64
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
Expand All @@ -52,7 +51,7 @@ jobs:
needs: prepare-matrix
env:
NXF_ANSI_LOG: false
JAVA_HOME: $JAVA_HOME_21_X64

strategy:
matrix:
TEMPLATE: ${{ fromJson(needs.prepare-matrix.outputs.all_features) }}
Expand Down Expand Up @@ -92,6 +91,12 @@ jobs:
python -m pip install --upgrade pip
pip install .
# Set up JAVA_HOME for Java 21
- name: Set Java 21
run: |
echo "JAVA_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV
echo "PATH=$JAVA_HOME_21_X64/bin:$PATH" >> $GITHUB_ENV
- name: Install Nextflow
uses: nf-core/setup-nextflow@v2
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/create-test-wf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ${{ github.event.inputs.runners || github.run_number > 1 && 'ubuntu-latest' || 'self-hosted' }}
env:
NXF_ANSI_LOG: false
JAVA_HOME: $JAVA_HOME_21_X64

strategy:
matrix:
NXF_VER:
Expand All @@ -59,6 +59,12 @@ jobs:
python -m pip install --upgrade pip
pip install .
# Set up JAVA_HOME for Java 21
- name: Set Java 21
run: |
echo "JAVA_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV
echo "PATH=$JAVA_HOME_21_X64/bin:$PATH" >> $GITHUB_ENV
- name: Install Nextflow
uses: nf-core/setup-nextflow@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ jobs:
id: date
run: echo "date=$(date +'%Y-%m')" >> $GITHUB_ENV

# Set up JAVA_HOME for Java 21
- name: Set Java 21
run: |
echo "JAVA_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV
echo "PATH=$JAVA_HOME_21_X64/bin:$PATH" >> $GITHUB_ENV
- name: Install Nextflow
uses: nf-core/setup-nextflow@v2

Expand Down
7 changes: 6 additions & 1 deletion nf_core/pipeline-template/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:

env:
NXF_ANSI_LOG: false
JAVA_HOME: $JAVA_HOME_21_X64
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity

Expand Down Expand Up @@ -48,6 +47,12 @@ jobs:
- name: Check out pipeline code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

# Set up JAVA_HOME for Java 21
- name: Set Java 21
run: |
echo "JAVA_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV
echo "PATH=$JAVA_HOME_21_X64/bin:$PATH" >> $GITHUB_ENV
- name: Set up Nextflow
uses: nf-core/setup-nextflow@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ on:

env:
NXF_ANSI_LOG: false
JAVA_HOME: $JAVA_HOME_21_X64

jobs:
download:
runs-on: ubuntu-latest
steps:
# Set up JAVA_HOME for Java 21
- name: Set Java 21
run: |
echo "JAVA_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV
echo "PATH=$JAVA_HOME_21_X64/bin:$PATH" >> $GITHUB_ENV
- name: Install Nextflow
uses: nf-core/setup-nextflow@v2

Expand Down
6 changes: 6 additions & 0 deletions nf_core/pipeline-template/.github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
- name: Check out pipeline code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

# Set up JAVA_HOME for Java 21
- name: Set Java 21
run: |
echo "JAVA_HOME=$JAVA_HOME_21_X64" >> $GITHUB_ENV
echo "PATH=$JAVA_HOME_21_X64/bin:$PATH" >> $GITHUB_ENV
- name: Install Nextflow
uses: nf-core/setup-nextflow@v2

Expand Down

0 comments on commit a604cb5

Please sign in to comment.