Skip to content

Commit

Permalink
Get rid of json file, provide config in yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmades committed Jul 15, 2024
1 parent 5d6a14d commit ef5e0d3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/build-strategy.json

This file was deleted.

20 changes: 17 additions & 3 deletions .github/workflows/run-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,23 @@ jobs:
steps:
- name: Define build startegy
id: strategy
run: |
matrix=$(echo $(cat ./.github/workflows/build-strategy.json) | sed 's/ //g' )
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
env:
CONFIG: >-
[
{
"platform": [
"ubuntu-22.04",
"windows-2022"
],
"build_type": [
"Release"
]
}
]
run: echo "matrix=$(jq -r -c . <<< "$CONFIG")" >> $GITHUB_OUTPUT

- name: Display build config
run: jq . <<< '${{ steps.strategy.outputs.matrix }}'

build_dependencies:
needs: define_build_strategy
Expand Down

0 comments on commit ef5e0d3

Please sign in to comment.