Skip to content

Commit

Permalink
Fix CI for multiple artifact uploads with different compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd authored Feb 9, 2024
1 parent f5cc16d commit 5e0ea1f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
workflow_call:
inputs:
inputs:
artifact_name:
type: string
required: true
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:

- name: Upload documentation as artifact (from workflow call)
uses: actions/upload-artifact@v4
if: ${ { github.event_name } == 'workflow_call'
if: ${{ github.event_name == 'workflow_call' }}
with:
name: ${{ inputs.artifact_name }}
path: ${{ env.PUBLISH_DIR }}
Expand All @@ -53,7 +53,7 @@ jobs:

- name: Upload documentation as artifact
uses: actions/upload-artifact@v4
if: ${ { github.event_name } != 'workflow_call'
if: ${{ github.event_name != 'workflow_call' }}
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.PUBLISH_DIR }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/create_legacy_checkpoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: Generate adios4dolfinx legacy data

on:
workflow_call:
inputs:
inputs:
artifact_name:
type: string
required: true

env:
data_dir: "legacy_checkpoint"
adios4dolfinx_version: "0.7.1"
description: "Name of the artifact to be created"

jobs:
create-adios-data:
env:
data_dir: "legacy_checkpoint"
adios4dolfinx_version: "0.7.1"
runs-on: "ubuntu-22.04"
container: ghcr.io/fenics/dolfinx/dolfinx:v0.7.3

Expand All @@ -27,5 +27,5 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: ${{inputs.artifact_name}_${{ env.data_dir }}
name: ${{ inputs.artifact_name }}
path: ./${{ env.data_dir }}
25 changes: 13 additions & 12 deletions .github/workflows/create_legacy_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,27 @@ name: Generate data from Legacy DOLFIN

on:
workflow_call:
inputs:
inputs:
artifact_name:
type: string
required: true

env:
data_dir: "legacy"

description: "Name of the artifact to be created"

jobs:

create-dolfin-data:
env:
data_dir: "legacy"

runs-on: "ubuntu-22.04"
container: ghcr.io/scientificcomputing/fenics:2023-11-15
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Create datasets
run: python3 ./tests/create_legacy_data.py --output-dir=$data_dir
- name: Create datasets
run: python3 ./tests/create_legacy_data.py --output-dir=$data_dir

- uses: actions/upload-artifact@v4
with:
name: ${{inputs.artifact_name}_${{ env.data_dir }}
path: ./${{ env.data_dir }}
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact_name }}
path: ./${{ env.data_dir }}
8 changes: 4 additions & 4 deletions .github/workflows/test_package_openmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ jobs:
- name: Download legacy data
uses: actions/download-artifact@v4
with:
name: legacy
path: ./legacy_ompi
name: legacy_ompi
path: ./legacy

- name: Download legacy data
uses: actions/download-artifact@v4
with:
name: legacy_checkpoint
path: ./legacy_checkpoint_ompi
name: legacy_checkpoint_ompi
path: ./legacy_checkpoint

- name: Install package
run: python3 -m pip install .[test]
Expand Down

0 comments on commit 5e0ea1f

Please sign in to comment.