Skip to content

Commit

Permalink
Attempt to improve job names.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Jun 5, 2024
1 parent e867cd0 commit ce06d81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
validate:
type: boolean
required: false

env:
# prevent deadlocked MPI tests from causing the job to cancel
MPIEXEC_TIMEOUT: 3000
Expand All @@ -43,7 +43,6 @@ env:

jobs:
build:
name: Build [${{ inputs.config }}]
runs-on: ${{fromJson(inputs.build_runner) }}
container:
image: glotzerlab/ci:2024.06.04-${{ inputs.container_prefix }}
Expand Down Expand Up @@ -88,11 +87,11 @@ jobs:
BUILD_HPMC: ${{ !contains(inputs.config, 'nohpmc') }}
BUILD_DEBUG: ${{ contains(inputs.config, 'debug') }}
shell: bash

- name: Build
run: ninja install -j $(($(getconf _NPROCESSORS_ONLN) + 2))
working-directory: build

- name: Configure plugins
run : |
if [[ ${BUILD_DEBUG} == "true" ]]; then BUILD_TYPE="Debug"; else BUILD_TYPE="Release"; fi
Expand All @@ -101,20 +100,20 @@ jobs:
env:
BUILD_DEBUG: ${{ contains(inputs.config, 'debug') }}
shell: bash

- name: Build plugins
run: ninja install -j $(($(getconf _NPROCESSORS_ONLN) + 2))
working-directory: build-example-plugins

- name: Remove object files
run: find build -type f -name '*.o' -delete

- name: 'Tar build'
run: tar --use-compress-program='zstd -10 -T0' -cvf build.tar build

- name: 'Tar install'
run: tar --use-compress-program='zstd -10 -T0' -cvf install.tar install

- name: 'Upload build'
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
Expand All @@ -137,7 +136,6 @@ jobs:


pytest:
name: Run pytest [${{ inputs.config }}]
needs: build
runs-on: ${{ fromJson(inputs.test_runner) }}
container:
Expand Down Expand Up @@ -186,7 +184,6 @@ jobs:


ctest:
name: Run ctest [${{ inputs.config }}]
needs: build
runs-on: ${{ fromJson(inputs.test_runner) }}
container:
Expand Down Expand Up @@ -228,7 +225,6 @@ jobs:


validate:
name: Validate [${{ inputs.config }}]
needs: build
runs-on: ${{ fromJson(inputs.test_runner) }}
container:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_new.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}

typical:
name: Build and test typical configurations
name: "${{ join(matrix.config, '_') }}"
uses: ./.github/workflows/build_and_test.yaml
with:
config: ${{ join(matrix.config, '_') }}
Expand Down

0 comments on commit ce06d81

Please sign in to comment.