Skip to content

Commit

Permalink
ci: configure bors
Browse files Browse the repository at this point in the history
messense committed Nov 20, 2022

Verified

This commit was signed with the committer’s verified signature.
messense messense
1 parent 8ca41be commit b7bbd7b
Showing 2 changed files with 36 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/bors.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
delete_merged_branches = true
required_approvals = 0
use_codeowners = false
status = [
"conclusion",
]
timeout_sec = 21600
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -4,6 +4,10 @@ on:
push:
branches:
- main
# for bors r+
- staging
# for bors try
- trying
pull_request:
workflow_dispatch:

@@ -43,6 +47,7 @@ jobs:
check-target:
needs: [fmt]
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
strategy:
# If one platform fails, allow the rest to keep testing if `CI-no-fail-fast` label is present
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
@@ -313,6 +318,7 @@ jobs:
CARGO_PRIMARY_PACKAGE: 1

valgrind:
if: github.event_name != 'pull_request'
needs: [fmt]
runs-on: ubuntu-latest
steps:
@@ -336,6 +342,7 @@ jobs:
TRYBUILD: overwrite

careful:
if: github.event_name != 'pull_request'
needs: [fmt]
runs-on: ubuntu-latest
steps:
@@ -387,6 +394,7 @@ jobs:

emscripten:
name: emscripten
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -416,3 +424,24 @@ jobs:
run: nox -s build-emscripten
- name: Test
run: nox -s test-emscripten

conclusion:
needs:
- fmt
- clippy
- check-target
- build
- valgrind
- careful
- coverage
- emscripten
if: always()
runs-on: ubuntu-latest
steps:
- name: Result
run: |
jq -C <<< "${needs}"
# Check if all needs were successful or skipped.
"$(jq -r 'all(.result as $result | (["success", "skipped"] | contains([$result])))' <<< "${needs}")"
env:
needs: ${{ toJson(needs) }}

0 comments on commit b7bbd7b

Please sign in to comment.