feat: new def convert #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: pr check | |
permissions: | |
contents: read | |
pull-requests: write | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
libschanged: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Get list of changed libs | |
id: libs | |
run: | | |
DIFF="$(git diff --name-only origin/${{ github.base_ref }} | xargs dirname | sort | uniq)" | |
LIBS=$(echo "${DIFF}" | grep '^platform/' | cut -d'/' -f2 | sort | uniq) | |
JSONARRAY=$(echo "${LIBS}" | jq -R -s -c 'split("\n")'[:-1]) | |
echo "list=${JSONARRAY}" >> "$GITHUB_OUTPUT" | |
shell: bash | |
outputs: | |
list: ${{ steps.libs.outputs.list }} | |
checklib: | |
needs: libschanged | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
lib: ${{ fromJson(needs.libschanged.outputs.list) }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set up go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
check-latest: true | |
- name: Install alzlibtool | |
run: go install github.com/Azure/alzlib/cmd/[email protected] |