mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-22 04:03:06 +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"
|
name: "Build binaries"
|
||||||
runs-on: ${{ matrix.info.os }}
|
runs-on: ${{ matrix.info.os }}
|
||||||
container: ${{ matrix.info.container }}
|
container: ${{ matrix.info.container }}
|
||||||
timeout-minutes: 10
|
timeout-minutes: 12
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -230,7 +230,7 @@ jobs:
|
||||||
build-msi:
|
build-msi:
|
||||||
name: "Build MSI installer"
|
name: "Build MSI installer"
|
||||||
runs-on: "windows-2019"
|
runs-on: "windows-2019"
|
||||||
timeout-minutes: 10
|
timeout-minutes: 12
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
@ -281,7 +281,7 @@ jobs:
|
||||||
build-cirrus:
|
build-cirrus:
|
||||||
name: "Build using Cirrus CI"
|
name: "Build using Cirrus CI"
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
timeout-minutes: 10
|
timeout-minutes: 12
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
@ -319,7 +319,7 @@ jobs:
|
||||||
build-deb:
|
build-deb:
|
||||||
name: "Build .deb software packages"
|
name: "Build .deb software packages"
|
||||||
runs-on: "ubuntu-20.04"
|
runs-on: "ubuntu-20.04"
|
||||||
timeout-minutes: 10
|
timeout-minutes: 12
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -448,7 +448,7 @@ jobs:
|
||||||
name: "Build .rpm software packages"
|
name: "Build .rpm software packages"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/clementtsang/almalinux-8
|
container: ghcr.io/clementtsang/almalinux-8
|
||||||
timeout-minutes: 10
|
timeout-minutes: 12
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -62,7 +62,7 @@ jobs:
|
||||||
needs: pre-job
|
needs: pre-job
|
||||||
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
||||||
runs-on: ${{ matrix.info.os }}
|
runs-on: ${{ matrix.info.os }}
|
||||||
timeout-minutes: 10
|
timeout-minutes: 12
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -143,7 +143,7 @@ jobs:
|
||||||
needs: pre-job
|
needs: pre-job
|
||||||
runs-on: ${{ matrix.info.os }}
|
runs-on: ${{ matrix.info.os }}
|
||||||
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
||||||
timeout-minutes: 10
|
timeout-minutes: 12
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
2
.github/workflows/coverage.yml
vendored
2
.github/workflows/coverage.yml
vendored
|
@ -37,7 +37,7 @@ jobs:
|
||||||
needs: pre-job
|
needs: pre-job
|
||||||
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
||||||
runs-on: ${{ matrix.info.os }}
|
runs-on: ${{ matrix.info.os }}
|
||||||
timeout-minutes: 10
|
timeout-minutes: 12
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
13
.github/workflows/nightly.yml
vendored
13
.github/workflows/nightly.yml
vendored
|
@ -20,8 +20,9 @@ env:
|
||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Check if things should be skipped.
|
# Check if things should be skipped, or if this is a mock job.
|
||||||
pre-job:
|
initialize-job:
|
||||||
|
name: initialize-job
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
|
@ -33,17 +34,11 @@ jobs:
|
||||||
skip_after_successful_duplicate: "true"
|
skip_after_successful_duplicate: "true"
|
||||||
do_not_skip: '["workflow_dispatch"]'
|
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
|
- name: Check if mock
|
||||||
run: |
|
run: |
|
||||||
if [[ -z "${{ github.event.inputs.isMock }}" ]]; then
|
if [[ -z "${{ github.event.inputs.isMock }}" ]]; then
|
||||||
echo "This is a scheduled nightly run."
|
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."
|
echo "This is a mock run."
|
||||||
else
|
else
|
||||||
echo "This is NOT a mock run. Watch for the generated files!"
|
echo "This is NOT a mock run. Watch for the generated files!"
|
||||||
|
|
Loading…
Reference in a new issue