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:
Clement Tsang 2024-09-04 22:56:48 -04:00 committed by GitHub
parent 6c42770b5e
commit 2e5000e399
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 17 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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!"