Merge pull request #71 from Susko3/require-specifying-SDL3-commit-in-build

Require specifying SDL3 commit to build to prevent incompatible bindings and binaries
This commit is contained in:
Dan Balasescu 2024-05-18 21:45:35 +09:00 committed by GitHub
commit 9f385f67ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 5 deletions

View File

@ -1,7 +1,12 @@
name: Build Native
on:
workflow_dispatch:
inputs: {}
inputs:
sdl_ref:
description: SDL3 commit/branch/tag to build
required: true
default: main
type: string
# schedule:
# - cron: '0 0 * * *'
env:
@ -29,7 +34,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: 'libsdl-org/SDL'
ref: 'main'
ref: ${{ inputs.sdl_ref }}
- uses: actions/checkout@v4
with:
@ -64,7 +69,7 @@ jobs:
RUNNER_OS: ${{ runner.os }}
FLAGS: ${{ matrix.platform.flags }}
run: ./SDL3-CS/build.sh
- name: Get Actions user id
if: runner.os == 'Linux'
id: get_uid
@ -94,7 +99,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: 'libsdl-org/SDL'
ref: 'main'
ref: ${{ inputs.sdl_ref }}
- uses: actions/checkout@v4
with:
@ -137,7 +142,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: 'libsdl-org/SDL'
ref: 'main'
ref: ${{ inputs.sdl_ref }}
- uses: actions/checkout@v4
with: