From e5a2b13d38c94d67f1f3319de4faa89485c78625 Mon Sep 17 00:00:00 2001 From: Susko3 Date: Sat, 18 May 2024 12:34:32 +0200 Subject: [PATCH] Specify SDL3 commit to build --- .github/workflows/build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43e1fbd..7effd12 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: