Check symbols #42
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: Check symbols | |
on: | |
workflow_run: | |
workflows: | |
- Build | |
types: | |
- completed | |
jobs: | |
check: | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: flutter-tizen/tizen_allowlist | |
token: ${{ secrets.TIZENAPI_TOKEN }} | |
path: tizen_allowlist | |
- name: Download artifacts | |
uses: TizenAPI/tizenfx-build-actions/download-workflow-artifacts@master | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
run-id: ${{ github.event.workflow_run.id }} | |
name: tizen-arm-release | |
path: artifacts | |
- name: Check symbols | |
run: | | |
python3 ci/tizen/check_symbols.py \ | |
--allowlist=tizen_allowlist/4.0.0_native_whitelist_wearable_v12.txt \ | |
artifacts/libflutter_engine.so | |
- name: Commit success status | |
if: ${{ success() }} | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.repos.createCommitStatus({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
sha: context.payload.workflow_run.head_sha, | |
context: 'Check symbols', | |
state: 'success', | |
description: 'All symbols are valid', | |
}); | |
- name: Commit failure status | |
if: ${{ failure() }} | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.repos.createCommitStatus({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
sha: context.payload.workflow_run.head_sha, | |
context: 'Check symbols', | |
state: 'failure', | |
description: 'Failed in checking symbols', | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}', | |
}); |