Specify SDL3 commit to build

This commit is contained in:
Susko3 2024-05-18 12:34:32 +02:00
parent d07bacbb8b
commit e5a2b13d38
1 changed files with 10 additions and 5 deletions

View File

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