mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-01 06:44:27 +08:00
ci: bump actions, switch away from ilammy/msvc-dev-cmd
This commit is contained in:
@@ -32,7 +32,7 @@ runs:
|
|||||||
echo "cache-key=${archive}-${{ inputs.version }}-${{ runner.os }}-${{ runner.arch }}" >> ${GITHUB_OUTPUT}
|
echo "cache-key=${archive}-${{ inputs.version }}-${{ runner.os }}-${{ runner.arch }}" >> ${GITHUB_OUTPUT}
|
||||||
- name: 'Restore cached ${{ steps.calc.outputs.archive }}'
|
- name: 'Restore cached ${{ steps.calc.outputs.archive }}'
|
||||||
id: cache-restore
|
id: cache-restore
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v5
|
||||||
with:
|
with:
|
||||||
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}'
|
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}'
|
||||||
key: ${{ steps.calc.outputs.cache-key }}
|
key: ${{ steps.calc.outputs.cache-key }}
|
||||||
@@ -43,7 +43,7 @@ runs:
|
|||||||
Invoke-WebRequest "${{ steps.calc.outputs.url }}" -OutFile "${{ runner.temp }}/${{ steps.calc.outputs.archive }}"
|
Invoke-WebRequest "${{ steps.calc.outputs.url }}" -OutFile "${{ runner.temp }}/${{ steps.calc.outputs.archive }}"
|
||||||
- name: 'Cache ${{ steps.calc.outputs.archive }}'
|
- name: 'Cache ${{ steps.calc.outputs.archive }}'
|
||||||
if: ${{ !steps.cache-restore.outputs.cache-hit || steps.cache-restore.outputs.cache-hit == 'false' }}
|
if: ${{ !steps.cache-restore.outputs.cache-hit || steps.cache-restore.outputs.cache-hit == 'false' }}
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v5
|
||||||
with:
|
with:
|
||||||
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}'
|
path: '${{ runner.temp }}/${{ steps.calc.outputs.archive }}'
|
||||||
key: ${{ steps.calc.outputs.cache-key }}
|
key: ${{ steps.calc.outputs.cache-key }}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: TheMrMilchmann/setup-msvc-dev@v4
|
||||||
if: ${{ matrix.platform.platform == 'msvc' }}
|
if: ${{ matrix.platform.platform == 'msvc' }}
|
||||||
with:
|
with:
|
||||||
arch: ${{ matrix.platform.msvc-vcvars-arch }}
|
arch: ${{ matrix.platform.msvc-vcvars-arch }}
|
||||||
@@ -323,7 +323,7 @@ jobs:
|
|||||||
- name: 'Build (cross-platform-actions, BSD)'
|
- name: 'Build (cross-platform-actions, BSD)'
|
||||||
id: cpactions
|
id: cpactions
|
||||||
if: ${{ matrix.platform.cpactions }}
|
if: ${{ matrix.platform.cpactions }}
|
||||||
uses: cross-platform-actions/action@v0.32.0
|
uses: cross-platform-actions/action@v1
|
||||||
with:
|
with:
|
||||||
operating_system: '${{ matrix.platform.cpactions-os }}'
|
operating_system: '${{ matrix.platform.cpactions-os }}'
|
||||||
architecture: '${{ matrix.platform.cpactions-arch }}'
|
architecture: '${{ matrix.platform.cpactions-arch }}'
|
||||||
|
|||||||
@@ -391,7 +391,7 @@ jobs:
|
|||||||
- name: Set up ninja
|
- name: Set up ninja
|
||||||
uses: ./.github/actions/setup-ninja
|
uses: ./.github/actions/setup-ninja
|
||||||
- name: 'Configure vcvars x86'
|
- name: 'Configure vcvars x86'
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: TheMrMilchmann/setup-msvc-dev@v4
|
||||||
with:
|
with:
|
||||||
arch: x64_x86
|
arch: x64_x86
|
||||||
- name: 'CMake (configure + build + tests) x86'
|
- name: 'CMake (configure + build + tests) x86'
|
||||||
@@ -411,7 +411,7 @@ jobs:
|
|||||||
cmake --build build_x86 --config Release --verbose
|
cmake --build build_x86 --config Release --verbose
|
||||||
ctest --test-dir build_x86 --no-tests=error -C Release --output-on-failure
|
ctest --test-dir build_x86 --no-tests=error -C Release --output-on-failure
|
||||||
- name: 'Configure vcvars x64'
|
- name: 'Configure vcvars x64'
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: TheMrMilchmann/setup-msvc-dev@v4
|
||||||
with:
|
with:
|
||||||
arch: x64
|
arch: x64
|
||||||
- name: 'CMake (configure + build + tests) x64'
|
- name: 'CMake (configure + build + tests) x64'
|
||||||
@@ -431,7 +431,7 @@ jobs:
|
|||||||
cmake --build build_x64 --config Release --verbose
|
cmake --build build_x64 --config Release --verbose
|
||||||
ctest --test-dir build_x64 --no-tests=error -C Release --output-on-failure
|
ctest --test-dir build_x64 --no-tests=error -C Release --output-on-failure
|
||||||
- name: 'Configure vcvars arm64'
|
- name: 'Configure vcvars arm64'
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: TheMrMilchmann/setup-msvc-dev@v4
|
||||||
with:
|
with:
|
||||||
arch: x64_arm64
|
arch: x64_arm64
|
||||||
- name: 'CMake (configure + build) arm64'
|
- name: 'CMake (configure + build) arm64'
|
||||||
|
|||||||
Reference in New Issue
Block a user