From d30abba3a09ccebcaeffe8c8d01027985a2453a7 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Thu, 21 Nov 2024 15:14:09 +0000 Subject: [PATCH] [ci] build and cache bitstream pre-merge Signed-off-by: Gary Guo --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 668d67ab02bfd..bcc0600246a07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,12 @@ on: push: branches-ignore: - "backport-*" + - "gh-readonly-queue/*" tags: - "*" + merge_group: + types: + - checks_requested permissions: contents: read @@ -77,6 +81,7 @@ jobs: name: Lint (slow) runs-on: ubuntu-22.04 needs: quick_lint + if: ${{ github.event_name != 'merge_group' }} steps: - uses: actions/checkout@v4 with: @@ -127,6 +132,7 @@ jobs: name: Airgapped build runs-on: ubuntu-22.04 needs: quick_lint + if: ${{ github.event_name != 'merge_group' }} steps: - uses: actions/checkout@v4 with: @@ -185,6 +191,7 @@ jobs: name: Run OTBN smoke Test needs: quick_lint runs-on: ubuntu-22.04 + if: ${{ github.event_name != 'merge_group' }} timeout-minutes: 10 steps: - uses: actions/checkout@v4 @@ -218,6 +225,7 @@ jobs: name: Run OTBN crypto tests needs: quick_lint runs-on: ubuntu-22.04 + if: ${{ github.event_name != 'merge_group' }} timeout-minutes: 60 steps: - uses: actions/checkout@v4 @@ -234,6 +242,7 @@ jobs: name: Verilated English Breakfast runs-on: ubuntu-22.04 needs: quick_lint + if: ${{ github.event_name != 'merge_group' }} steps: - uses: actions/checkout@v4 - name: Prepare environment @@ -255,6 +264,7 @@ jobs: name: Verilated Earl Grey runs-on: ubuntu-20.04 needs: quick_lint + if: ${{ github.event_name != 'merge_group' }} timeout-minutes: 240 steps: - uses: actions/checkout@v4 @@ -275,6 +285,7 @@ jobs: name: CW305's Bitstream runs-on: ubuntu-22.04-bitstream needs: quick_lint + if: ${{ github.event_name != 'merge_group' }} steps: - uses: actions/checkout@v4 - name: Prepare environment @@ -372,6 +383,7 @@ jobs: name: CW310 Test ROM Tests needs: chip_earlgrey_cw310 uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_test_rom_fpga_tests_cw310 @@ -384,6 +396,7 @@ jobs: name: CW310 ROM Tests needs: chip_earlgrey_cw310 uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_rom_fpga_tests_cw310 @@ -397,6 +410,7 @@ jobs: name: CW310 ROM_EXT Tests needs: chip_earlgrey_cw310 uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_rom_ext_fpga_tests_cw310 @@ -409,6 +423,7 @@ jobs: name: CW310 SiVal Tests needs: chip_earlgrey_cw310_hyperdebug uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_sival_fpga_tests_cw310 @@ -421,6 +436,7 @@ jobs: name: CW310 SiVal ROM_EXT Tests needs: chip_earlgrey_cw310_hyperdebug uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_sival_rom_ext_fpga_tests_cw310 @@ -433,6 +449,7 @@ jobs: name: CW310 Manufacturing Tests needs: chip_earlgrey_cw310_hyperdebug uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_manuf_fpga_tests_cw310 @@ -446,6 +463,7 @@ jobs: name: CW340 Test ROM Tests needs: chip_earlgrey_cw340 uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_test_rom_fpga_tests_cw340 @@ -458,6 +476,7 @@ jobs: name: CW340 ROM Tests needs: chip_earlgrey_cw340 uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_rom_fpga_tests_cw340 @@ -470,6 +489,7 @@ jobs: name: CW340 ROM_EXT Tests needs: chip_earlgrey_cw340 uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_rom_ext_fpga_tests_cw340 @@ -482,6 +502,7 @@ jobs: name: CW340 SiVal Tests needs: chip_earlgrey_cw340 uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_sival_fpga_tests_cw340 @@ -494,6 +515,7 @@ jobs: name: CW340 SiVal ROM_EXT Tests needs: chip_earlgrey_cw340 uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_sival_rom_ext_fpga_tests_cw340 @@ -506,6 +528,7 @@ jobs: name: CW340 Manufacturing Tests needs: chip_earlgrey_cw340 uses: ./.github/workflows/fpga.yml + if: ${{ github.event_name != 'merge_group' }} secrets: inherit with: job_name: execute_manuf_fpga_tests_cw340 @@ -573,6 +596,7 @@ jobs: name: Build Docker Containers runs-on: ubuntu-22.04 needs: quick_lint + if: ${{ github.event_name != 'merge_group' }} steps: - uses: actions/checkout@v4 - name: Build Developer Utility Container @@ -597,6 +621,7 @@ jobs: runs-on: ubuntu-22.04-vivado timeout-minutes: 120 needs: quick_lint + if: ${{ github.event_name != 'merge_group' }} steps: - uses: actions/checkout@v4 with: