From ce5f881db2c84a74af0c849f3f7df92ff3d679c8 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Thu, 25 Dec 2025 17:47:27 +0100 Subject: [PATCH] [CI] Perform ARM checks on nightly basis only --- .github/workflows/main.yml | 2 ++ .github/workflows/ubuntu.yml | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b41003750..37dccfd61 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,8 @@ jobs: needs: - pre-commit uses: ./.github/workflows/ubuntu.yml + with: + is_nightly: ${{ github.event_name == 'schedule' }} mac: needs: - pre-commit diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 8885c5cf2..e68b58375 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -2,6 +2,12 @@ name: Ubuntu on: workflow_call: + inputs: + is_nightly: + description: 'Is nightly CI run' + required: false + type: boolean + default: false permissions: contents: read @@ -17,7 +23,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: - os: ["ubuntu-24.04", "ubuntu-24.04-arm"] + os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }} build_type: [Release, Debug] steps: - uses: actions/checkout@v6 @@ -71,7 +77,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: - os: ["ubuntu-24.04", "ubuntu-24.04-arm"] + os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }} steps: - uses: actions/checkout@v6 - name: Download installed package @@ -103,7 +109,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: - os: ["ubuntu-24.04", "ubuntu-24.04-arm"] + os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }} steps: - uses: actions/checkout@v6 - name: Download installed package @@ -127,7 +133,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: - os: ["ubuntu-24.04", "ubuntu-24.04-arm"] + os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }} steps: - uses: actions/checkout@v6 with: @@ -172,7 +178,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: - os: ["ubuntu-24.04", "ubuntu-24.04-arm"] + os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }} steps: - uses: actions/checkout@v6 - name: Download installed package @@ -204,7 +210,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: - os: ["ubuntu-24.04", "ubuntu-24.04-arm"] + os: ${{ fromJSON(inputs.is_nightly && '["ubuntu-24.04","ubuntu-24.04-arm"]' || '["ubuntu-24.04"]') }} steps: - uses: actions/checkout@v6 - name: Download installed package