Skip to content

Commit

Permalink
set different names for different runs
Browse files Browse the repository at this point in the history
  • Loading branch information
enigne committed Jul 21, 2024
1 parent e2e12b5 commit 0bde952
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/common-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Common CI
on:
workflow_call:
inputs:
os:
required: true
build_type:
required: true
type: string
Expand All @@ -11,12 +13,9 @@ env:

jobs:
build:
runs-on: ubuntu-latest
name: build-ISSM-${{ inputs.os }}-${{ inputs.build_type}}
runs-on: ${{ inputs.os }}
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

- name: Check out repository code
uses: actions/checkout@v4

Expand Down Expand Up @@ -118,19 +117,32 @@ jobs:
compression-level: 1

test:
runs-on: ubuntu-latest
runs-on: ${{ inputs.os }}
needs: build
strategy:
fail-fast: false
matrix:
test-cases:
- '101:110'
- '201:210'
- '301:310'
- '101:199'
- '201:299'
- '301:399'
- '401:499'
- '501:599'
- '601:699'
- '701:799'
- '801:899'
build-type:
- ${{ inputs.build_type }}
additional:
- ' '
include:
- test-cases: $${{ inputs.build_type == 'codipack' && '3015, 3119, 3480' }}
- test-cases: $${{ inputs.build_type == 'codipack' && '3201:3206' }}

- build-type: 'codipack'
additional: "'benchmark','all',"
- build-type: 'codipack'
test-cases: '3015, 3119, 3480'
- build-type: 'codipack'
test-cases: '3201:3206'

steps:
- name: Download ISSM artifact
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -163,7 +175,7 @@ jobs:
devpath;
% Run tests
runme('exclude',[IdFromString('Dakota')],'id',[${{matrix.test-cases}}],'quitonerror',1);
runme('exclude',[IdFromString('Dakota')],${{matrix.additional}} 'id',[${{matrix.test-cases}}],'quitonerror',1);
quit(0);
EOF
cat ${ISSM_DIR}/matlab_ci.m
Expand All @@ -179,3 +191,4 @@ jobs:
LD_PRELOAD=/lib/x86_64-linux-gnu/libstdc++.so.6:$ISSM_DIR/externalpackages/petsc/install/lib/libmpi.so:$ISSM_DIR/externalpackages/petsc/install/lib/libmpifort.so run-matlab-command "matlab_ci"
- run: echo "This job's status is ${{ job.status }}."

5 changes: 4 additions & 1 deletion .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ env:
ISSM_DIR: ${{ github.workspace }}

jobs:
build-type-matrix:
build-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
build_type: ['basic', 'codipack']
uses: ./.github/workflows/common-workflow.yml
with:
os: ${{ matrix.os }}
build_type: ${{ matrix.build_type }}
secrets: inherit
name: build-test-${{ matrix.os }}-${{ matrix.build_type }}

0 comments on commit 0bde952

Please sign in to comment.