mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-21 19:53:05 +00:00
ci: merge mock + init job in nightly (#1584)
* ci: merge mock + init job in nightly * also slightly bump timeout as a safeguard
This commit is contained in:
parent
6c42770b5e
commit
2e5000e399
4 changed files with 12 additions and 17 deletions
10
.github/workflows/build_releases.yml
vendored
10
.github/workflows/build_releases.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
name: "Build binaries"
|
||||
runs-on: ${{ matrix.info.os }}
|
||||
container: ${{ matrix.info.container }}
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 12
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
@ -230,7 +230,7 @@ jobs:
|
|||
build-msi:
|
||||
name: "Build MSI installer"
|
||||
runs-on: "windows-2019"
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 12
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
|
@ -281,7 +281,7 @@ jobs:
|
|||
build-cirrus:
|
||||
name: "Build using Cirrus CI"
|
||||
runs-on: "ubuntu-latest"
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 12
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
|
@ -319,7 +319,7 @@ jobs:
|
|||
build-deb:
|
||||
name: "Build .deb software packages"
|
||||
runs-on: "ubuntu-20.04"
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 12
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
@ -448,7 +448,7 @@ jobs:
|
|||
name: "Build .rpm software packages"
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/clementtsang/almalinux-8
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 12
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -62,7 +62,7 @@ jobs:
|
|||
needs: pre-job
|
||||
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
||||
runs-on: ${{ matrix.info.os }}
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 12
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
@ -143,7 +143,7 @@ jobs:
|
|||
needs: pre-job
|
||||
runs-on: ${{ matrix.info.os }}
|
||||
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 12
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
|
@ -37,7 +37,7 @@ jobs:
|
|||
needs: pre-job
|
||||
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
||||
runs-on: ${{ matrix.info.os }}
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 12
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
13
.github/workflows/nightly.yml
vendored
13
.github/workflows/nightly.yml
vendored
|
@ -20,8 +20,9 @@ env:
|
|||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||
|
||||
jobs:
|
||||
# Check if things should be skipped.
|
||||
pre-job:
|
||||
# Check if things should be skipped, or if this is a mock job.
|
||||
initialize-job:
|
||||
name: initialize-job
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||
|
@ -33,17 +34,11 @@ jobs:
|
|||
skip_after_successful_duplicate: "true"
|
||||
do_not_skip: '["workflow_dispatch"]'
|
||||
|
||||
initialize-job:
|
||||
name: initialize-job
|
||||
needs: pre-job
|
||||
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check if mock
|
||||
run: |
|
||||
if [[ -z "${{ github.event.inputs.isMock }}" ]]; then
|
||||
echo "This is a scheduled nightly run."
|
||||
elif [[ "${{ github.event.inputs.isMock }}" == true ]]; then
|
||||
elif [[ "${{ github.event.inputs.isMock }}" == "true" ]]; then
|
||||
echo "This is a mock run."
|
||||
else
|
||||
echo "This is NOT a mock run. Watch for the generated files!"
|
||||
|
|
Loading…
Reference in a new issue