From dbc7b8c7badbdd6c2e7696f96be695cd11785007 Mon Sep 17 00:00:00 2001 From: marcella-found Date: Fri, 16 Feb 2024 12:45:40 -0500 Subject: [PATCH] seed workflow --- .github/workflows/build-test.yml | 62 ++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/build-test.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000000000..392a92fa637a0 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,62 @@ +name: build-test +on: + # makes workflow reusable + workflow_call: + inputs: + label: + description: "requested runner label (specifies instance)" + type: string + required: true + timeout: + description: "time limit for run in minutes " + type: string + required: true + gitref: + description: "git commit hash or branch name" + type: string + required: true + python: + description: "python version, e.g. 3.10.12" + type: string + required: true + + # makes workflow manually callable + workflow_dispatch: + inputs: + label: + description: "requested runner label (specifies instance)" + type: string + required: true + timeout: + description: "time limit for run in minutes " + type: string + required: true + gitref: + description: "git commit hash or branch name" + type: string + required: true + python: + description: "python version, e.g. 3.10.12" + type: string + required: true + +jobs: + + BUILD-TEST: + + runs-on: ${{ inputs.label }} + timeout-minutes: ${{ fromJson(inputs.timeout) }} + + steps: + + - name: checkout + id: checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ inputs.gitref }} + submodules: recursive + + - name: hello world + run: | + echo "HELLO WORLD" >> $GITHUB_STEP_SUMMARY