Skip to content

Commit

Permalink
WIP projects as parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
axel-h authored and Axel Heider committed Jun 14, 2024
1 parent 7d88ef9 commit 0b8493d
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/sel4projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ name: sel4-projects

on:
workflow_call:
inputs:
projects:
type: string
required: true
labels:
required: false
type: string
concurrency_group:
required: true
type: string
workflow_call_repo:
required: false
type: string
default: "axel-h/ci-actions" # "sel4/ci-actions"
workflow_call_branch:
required: false
type: string
default: "patch-axel-7" # "master"
workflow_call_workflow:
required: true
type: string

# intended to run on
# pull_request_target:
Expand All @@ -30,14 +51,38 @@ jobs:
(github.event.label.name == 'hw-bench')) ||
((github.event.action != 'labeled') &&
contains(github.event.pull_request.labels.*.name, 'hw-bench')) }}
#sim: false
# echo "prj sim:" ${{ fromJSON(format('[{0}]', inputs.projects)) }}

runs-on: ubuntu-latest
steps:
- env:
inputs_JSON: ${{ toJSON(inputs) }}
# broken: inputs2_JSON: ${{ toJSON(fromJSON('[a,b,c]')) }}
github_JSON: ${{ toJSON(github) }}
run: |
echo "workflow:" ${{ github.workflow_ref }}
echo "inputs2_JSON: ${inputs2_JSON}"
echo "prj sim:" ${{ inputs.projects }}
echo "prj sim:" "${{ format('[{0}]', inputs.projects) }}"
# echo "prj sim:" ${{ contains(fromJSON(format('[{0}]', inputs.projects)), 'sim') }}
#
# inputs2_JSON: ${{ toJSON(fromJSON(format('[{0}]', inputs.projects))) }}
#
# echo "prj sel4test:" ${{ contains(fromJSON(format('[{0}]', inputs.projects)), 'sel4test') }}
# echo "prj sel4bench:" ${{ contains(fromJSON(format('[{0}]', inputs.projects)), 'sel4bench') }}
# echo "prj foo: " ${{ contains(fromJSON(format('[{0}]', inputs.projects)), 'foo') }}
#
# sim:
# name: Sim
# needs: [check]
# if: ${{ needs.check.outputs.sim }}
# concurrency:
# group: ${{ github.workflow }}-sim-pr-${{ github.event.number }}
# cancel-in-progress: true
# uses: axel-h/ci-actions/.github/workflows/sel4test-sim.yml@patch-axel-7

sel4test:
name: sel4test
Expand Down

0 comments on commit 0b8493d

Please sign in to comment.