Merge pull request #4943 from eval-exec/exec/remove-stale-bot #82
This file contains hidden or 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: ci_quick_checks_macos | |
concurrency: | |
group: ci_quick_checks_macos-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- master | |
- develop | |
- "rc/*" | |
merge_group: {} | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
RUSTFLAGS: -D warnings | |
jobs: | |
prologue: | |
name: prologue | |
if: | | |
github.event_name != 'push' || | |
( github.event_name == 'push' && | |
( github.ref == 'refs/heads/master' || | |
(github.ref == 'refs/heads/develop' && startsWith(github.event.head_commit.message, 'Merge pull request #')) || | |
startsWith(github.ref, 'refs/heads/rc/') | |
) | |
) || (github.repository_owner != 'nervosnetwork') | |
runs-on: ubuntu-22.04 | |
outputs: | |
os_skip: ${{ steps.prologue.outputs.os_skip }} | |
job_skip: ${{ steps.prologue.outputs.job_skip }} | |
runner_label: ${{ steps.prologue.outputs.runner_label }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: prologue | |
id: prologue | |
uses: ./.github/actions/ci_prologue | |
with: | |
GITHUB_EVENT_NAME: ${{ github.event_name }} | |
COMMIT_MESSAGE: "${{github.event.head_commit.message}}" | |
PR_COMMONS_BODY: "${{ github.event.pull_request.body }}" | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}" | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_WORKFLOW: ${{ github.workflow }} | |
ci_quick_checks_macos: | |
name: ci_quick_checks_macos | |
needs: prologue | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
brew unlink yq | |
brew install grep gnu-sed bash python-yq | |
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then | |
echo bash version: | |
bash --version | |
devtools/ci/ci_main.sh | |
else | |
echo "skip job" | |
exit 0 | |
fi | |
shell: bash | |
env: | |
RUNNER_LABEL: ${{ needs.prologue.outputs.runner_label }} |