mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
ci: ensure rust extensions is on main branch
This commit is contained in:
parent
0118db4d27
commit
942b2c822c
1 changed files with 16 additions and 1 deletions
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
|
@ -18,7 +18,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||
rust_ver: ${{ steps.rust_ver.outputs.rust_ver }}
|
||||
steps:
|
||||
- id: skip_check
|
||||
uses: fkirc/skip-duplicate-actions@master
|
||||
|
@ -26,6 +25,22 @@ jobs:
|
|||
concurrent_skipping: "same_content"
|
||||
do_not_skip: '["push", "workflow_dispatch", "schedule"]'
|
||||
|
||||
# goal is to prevent merges when the commit is not from the main branch, builds should still succeed
|
||||
check_rust_commit:
|
||||
needs: [pre_build]
|
||||
if: ${{ needs.pre_build.outputs.should_skip != 'true' }}
|
||||
name: Verify SlippiRustExtensions Commit is in Main
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Main Branch Check
|
||||
shell: bash
|
||||
run: |
|
||||
git submodule update --init Externals/SlippiRustExtensions
|
||||
cd Externals/SlippiRustExtensions
|
||||
commit_id=$(git rev-parse HEAD)
|
||||
git branch --contains $commit_id | grep main
|
||||
|
||||
windows:
|
||||
needs: [pre_build]
|
||||
if: ${{ needs.pre_build.outputs.should_skip != 'true' }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue