Skip to content

Commit

Permalink
MISC: skip CI for commits that do not modify core sources. (#3064)
Browse files Browse the repository at this point in the history
  • Loading branch information
cebarobot committed Jun 13, 2024
1 parent a7828dc commit 49ceda6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/filters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
core:
- "!.github/ISSUE_TEMPLATE/**"
- "!.github/CODEOWNERS"
- "!.github/filters.yaml"
- "!**/*.md"
- "!LICENSE"
26 changes: 26 additions & 0 deletions .github/workflows/emu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,26 @@ on:
branches: [ master ]

jobs:
changes: # Changes Detection
name: Changes Detection
runs-on: ubuntu-latest
# Required permissions
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
core: ${{ steps.filter.outputs.core }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v3
id: filter
with:
predicate-quantifier: 'every'
filters: .github/filters.yaml
generate-verilog:
runs-on: bosc
needs: changes
if: ${{ needs.changes.outputs.core == 'true' }}
continue-on-error: false
timeout-minutes: 900
name: Generate Verilog
Expand Down Expand Up @@ -49,6 +67,8 @@ jobs:
python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --generate --config KunminghuV2Config --release --mfc
emu-basics:
runs-on: bosc
needs: changes
if: ${{ needs.changes.outputs.core == 'true' }}
continue-on-error: false
timeout-minutes: 900
name: EMU - Basics
Expand Down Expand Up @@ -106,6 +126,8 @@ jobs:
cat perf.log | sort | tee $PERF_HOME/copy_and_run.log
emu-performance:
runs-on: bosc
needs: changes
if: ${{ needs.changes.outputs.core == 'true' }}
continue-on-error: false
timeout-minutes: 900
name: EMU - Performance
Expand Down Expand Up @@ -169,6 +191,8 @@ jobs:
cat perf.log | sort | tee $PERF_HOME/astar.log
emu-mc:
runs-on: bosc
needs: changes
if: ${{ needs.changes.outputs.core == 'true' }}
continue-on-error: false
timeout-minutes: 900
name: EMU - MC
Expand Down Expand Up @@ -203,6 +227,8 @@ jobs:
python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --wave-dump $WAVE_HOME --threads 16 --numa --diff ./ready-to-run/riscv64-nemu-interpreter-dual-so --ci linux-hello-smp-new 2> /dev/zero
# simv-basics:
# runs-on: bosc
# needs: changes
# if: ${{ needs.changes.outputs.core == 'true' }}
# continue-on-error: false
# timeout-minutes: 900
# name: SIMV - Basics
Expand Down

0 comments on commit 49ceda6

Please sign in to comment.