diff --git a/.github/workflows/check-symbol_base.yml b/.github/workflows/check-symbol_base.yml new file mode 100644 index 0000000000000..91b46cb9ab87f --- /dev/null +++ b/.github/workflows/check-symbol_base.yml @@ -0,0 +1,55 @@ +name: Check Symbols + +on: + workflow_run: + workflows: ["Build"] + types: + - requested + - completed + +jobs: + pending: + if: | + github.event.action == 'requested' && + github.event.workflow_run.event == 'pull_request' + runs-on: ubuntu-latest + steps: + - uses: WonyoungChoi/workflow-run-status-action@main + with: + message_on_pending: 'Waiting for build finish' + + check: + if: | + github.event.action == 'completed' && + github.event.workflow_run.event == 'pull_request' && + github.event.workflow_run.conclusion == 'success' + + runs-on: ubuntu-latest + + steps: + - uses: WonyoungChoi/workflow-run-status-action@main + with: + message_on_success: 'All symbols are valid' + + - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + 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 + env: + ALLOWLIST: tizen_allowlist/4.0.0_native_whitelist_wearable_v12.txt + run: | + python ci/docker/tizen/tools/check-symbol.py --allowlist=$ALLOWLIST \ + artifacts/libflutter_engine.so \ + artifacts/libflutter_tizen_wearable.so diff --git a/ci/docker/tizen/tools/check-symbol.py b/ci/docker/tizen/tools/check-symbol.py index 816e7433a1cc1..f00e38bd1b6cf 100644 --- a/ci/docker/tizen/tools/check-symbol.py +++ b/ci/docker/tizen/tools/check-symbol.py @@ -46,6 +46,7 @@ def check_symbol(sofile, allowlist): continue if symbol.name in allowlist: continue + print(symbol.name) not_allowed.append(symbol) if not_allowed: