simplified

This commit is contained in:
Gregor Giesen 2024-09-30 12:43:33 +02:00
parent 5b7276faaa
commit a88c802eac
No known key found for this signature in database
GPG key ID: 26708AEB8029DD69

View file

@ -2,29 +2,10 @@ name: Foo
on:
workflow_dispatch:
inputs:
a_tasks:
description: "Number of CPUs"
type: number
required: true
default: 2
b_nodes:
description: "Number of nodes"
type: number
required: true
default: 1
c_timelimit:
description: "Timelimit (seconds)"
type: number
required: false
default: 2700
d_del_large:
description: "Delete large files"
foo:
description: "Foo"
type: boolean
default: true
e_del_on_success:
description: "Delete results of successful tests"
type: boolean
default: true
default: false
jobs:
job1:
@ -33,19 +14,4 @@ jobs:
- name: "Results"
working-directory: /tmp
run: |
[ $TIMELIMIT -eq 0 ] && OPT_TIMELIMIT="" || OPT_TIMELIMIT="-T $TIMELIMIT"
[ $DEL_LARGE = "true" ] && OPT_DEL_LARGE="-d" || OPT_DEL_LARGE=""
[ $DEL_SUCCESS = "true" ] && OPT_DEL_ON_SUCCESS="-S" || OPT_DEL_ON_SUCCESS=""
echo "${{ inputs.a_tasks }} ${{ inputs.b_nodes }} ${{ inputs.c_timelimit }} ${{ inputs.d_del_large }} ${{ inputs.e_del_on_success }}"
env
echo /share/weasel/${BRANCH}/bin/weasel-testsuite submit \
-r /ghome/ci/weasel_testsuite/${BRANCH}/${TIMESTAMP}/${NODES}-${TASKS} \
-A ci-weasel -i -N $NODES -n $TASKS -p metal ${OPT_TIMELIMIT} ${OPT_DEL_LARGE} ${OPT_DEL_ON_SUCCESS}
env:
BRANCH: ${{ github.ref_name }}
TIMESTAMP: ${{ steps.ctx.outputs.timestamp }}
TASKS: ${{ inputs.a_tasks }}
NODES: ${{ inputs.b_nodes }}
TIMELIMIT: ${{ inputs.c_timelimit }}
DEL_LARGE: ${{ inputs.d_del_large }}
DEL_SUCCESS: ${{ inputs.e_del_on_success }}
echo "${{ inputs.foo }}"