Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: change test internal libwasmvm binary triggered only build PR #143

Merged
merged 4 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/builds_and_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ jobs:
- name: Run shellcheck
run: ./devtools/check_shellscript_lint.sh

test_internal_shared_lib:
test_internal_shared_lib_on_auto_build_pr:
if: ${{ github.event.pusher.name == 'finschia-auto-pr[bot]' }}
runs-on: ubuntu-latest
env:
GORACE: "halt_on_error=1"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/deploy_to_git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# and .dll builds are not deterministic.
# Deactivating this step to avoid polluting the git hostory.
os: [linux, macos]
include:
include:
- os: linux
dockerfile_name: centos7
shared_library_extension: so
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
gh pr list --state open --json author,number | jq -r '.[] | select(.author.login == "app/finschia-auto-pr") | .number' | while read -r pr_number; do
gh pr close -d -c "This pr is out of date." $pr_number
done
env:
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
- name: Get latest PR
id: prn
Expand All @@ -127,7 +127,7 @@ jobs:
run: |
git config user.name "finschia-auto-pr[bot]"
git config user.email "141415241+finschia-auto-pr[bot]@users.noreply.github.com"
git commit -m "chore: auto generate shared library"
git commit -m "build: auto generate shared library"
- name: Create pull request
if: steps.cd.outputs.need_update=='true'
id: cpr
Expand All @@ -138,7 +138,7 @@ jobs:
branch: auto_shared_library_${{ steps.prn.outputs.latest_pr_number }}
base: ${{ github.ref_name }}
delete-branch: true
title: 'chore: (auto)update shared library'
title: 'build: (auto)update shared library'
body: |
# Description
Update shared library
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
runs-on: ubuntu-latest
needs: [build_shared_library, deploy_to_git]
if: |
always() &&
always() &&
( needs.build_shared_library.result=='success' || needs.build_shared_library.result=='skipped' ) &&
( github.event.pusher.name == 'finschia-auto-pr[bot]' || needs.deploy_to_git.outputs.updated=='false' )
outputs:
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
name: Push Tag
needs: [build_shared_library, get-version]
if: |
always() &&
always() &&
( needs.build_shared_library.result=='success' || needs.build_shared_library.result=='skipped' ) &&
( needs.get-version.outputs.package-version != needs.get-version.outputs.latest-tag )
runs-on: ubuntu-latest
Expand All @@ -210,7 +210,7 @@ jobs:
name: Update releases
needs: [build_shared_library, push-tag]
if: |
always() &&
always() &&
( needs.build_shared_library.result=='success' || needs.build_shared_library.result=='skipped' ) &&
( needs.push-tag.result=='success' )
runs-on: ubuntu-latest
Expand Down
Loading