mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 21:12:35 +01:00
actions: bump actions. fixes upload-artifact@v3 failures
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CMAKE_VERSION: 3.10.2
|
CMAKE_VERSION: 3.10.2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
CC: ${{ matrix.cc }}
|
CC: ${{ matrix.cc }}
|
||||||
CXX: ${{ matrix.cxx }}
|
CXX: ${{ matrix.cxx }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
@@ -94,7 +94,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
|
|||||||
8
.github/workflows/format.yml
vendored
8
.github/workflows/format.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
name: cmake-format
|
name: cmake-format
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
if: startsWith(github.event_name, 'pull_request')
|
if: startsWith(github.event_name, 'pull_request')
|
||||||
- name: Format CMake files
|
- name: Format CMake files
|
||||||
id: cmake-format
|
id: cmake-format
|
||||||
uses: PuneetMatharu/cmake-format-lint-action@main
|
uses: PuneetMatharu/cmake-format-lint-action@v1.0.6
|
||||||
with:
|
with:
|
||||||
args: --config-files .cmake-format.py --check
|
args: --config-files .cmake-format.py --check
|
||||||
# Run only if a PR and cmake-format has failed
|
# Run only if a PR and cmake-format has failed
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
needs: cmake-format-check
|
needs: cmake-format-check
|
||||||
if: always() && startsWith(github.event_name, 'pull_request') && needs.cmake-format-check.result == 'failure'
|
if: always() && startsWith(github.event_name, 'pull_request') && needs.cmake-format-check.result == 'failure'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
if: startsWith(github.event_name, 'pull_request')
|
if: startsWith(github.event_name, 'pull_request')
|
||||||
- name: Format CMake files
|
- name: Format CMake files
|
||||||
id: cmake-format
|
id: cmake-format
|
||||||
uses: PuneetMatharu/cmake-format-lint-action@v1.0.0
|
uses: PuneetMatharu/cmake-format-lint-action@v1.0.6
|
||||||
with:
|
with:
|
||||||
args: --config-files .cmake-format.py --in-place
|
args: --config-files .cmake-format.py --in-place
|
||||||
- run: |
|
- run: |
|
||||||
|
|||||||
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
sha: ${{ steps.version.outputs.sha }}
|
sha: ${{ steps.version.outputs.sha }}
|
||||||
tag: ${{ steps.version.outputs.tag }}
|
tag: ${{ steps.version.outputs.tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
CMAKE_INSTALL_DIR: ${{ github.workspace }}/install/
|
CMAKE_INSTALL_DIR: ${{ github.workspace }}/install/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
@@ -80,7 +80,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target install --config Release
|
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target install --config Release
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}
|
name: ${{ matrix.os }}
|
||||||
path: ${{ github.workspace }}/install/
|
path: ${{ github.workspace }}/install/
|
||||||
@@ -93,7 +93,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -102,69 +102,69 @@ jobs:
|
|||||||
find src/bgfx.cmake -name ".git*" -exec rm -rf {} +
|
find src/bgfx.cmake -name ".git*" -exec rm -rf {} +
|
||||||
find src/bgfx.cmake -name ".editorconfig" -delete
|
find src/bgfx.cmake -name ".editorconfig" -delete
|
||||||
rm src/bgfx.cmake/.cmake-format.py
|
rm src/bgfx.cmake/.cmake-format.py
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: windows-latest
|
name: windows-latest
|
||||||
path: ${{ github.workspace }}/install/windows/bgfx.cmake
|
path: ${{ github.workspace }}/install/windows/bgfx.cmake
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ubuntu-latest
|
name: ubuntu-latest
|
||||||
path: ${{ github.workspace }}/install/linux/bgfx.cmake
|
path: ${{ github.workspace }}/install/linux/bgfx.cmake
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-latest
|
name: macos-latest
|
||||||
path: ${{ github.workspace }}/install/macos/bgfx.cmake
|
path: ${{ github.workspace }}/install/macos/bgfx.cmake
|
||||||
- name: Create Source Zip
|
- name: Create Source Zip
|
||||||
uses: thedoctor0/zip-release@0.7.1
|
uses: thedoctor0/zip-release@0.7.6
|
||||||
with:
|
with:
|
||||||
type: 'zip'
|
type: 'zip'
|
||||||
filename: 'bgfx.cmake.${{ needs.version.outputs.tag }}.zip'
|
filename: 'bgfx.cmake.${{ needs.version.outputs.tag }}.zip'
|
||||||
directory: 'src'
|
directory: 'src'
|
||||||
path: 'bgfx.cmake'
|
path: 'bgfx.cmake'
|
||||||
- name: Create Source Tar
|
- name: Create Source Tar
|
||||||
uses: thedoctor0/zip-release@0.7.1
|
uses: thedoctor0/zip-release@0.7.6
|
||||||
with:
|
with:
|
||||||
type: 'tar'
|
type: 'tar'
|
||||||
filename: 'bgfx.cmake.${{ needs.version.outputs.tag }}.tar.gz'
|
filename: 'bgfx.cmake.${{ needs.version.outputs.tag }}.tar.gz'
|
||||||
directory: 'src'
|
directory: 'src'
|
||||||
path: 'bgfx.cmake'
|
path: 'bgfx.cmake'
|
||||||
- name: Create Windows Zip
|
- name: Create Windows Zip
|
||||||
uses: thedoctor0/zip-release@0.7.1
|
uses: thedoctor0/zip-release@0.7.6
|
||||||
with:
|
with:
|
||||||
type: 'zip'
|
type: 'zip'
|
||||||
filename: 'bgfx.cmake.binary.windows.${{ needs.version.outputs.tag }}.zip'
|
filename: 'bgfx.cmake.binary.windows.${{ needs.version.outputs.tag }}.zip'
|
||||||
directory: 'install/windows'
|
directory: 'install/windows'
|
||||||
path: 'bgfx.cmake'
|
path: 'bgfx.cmake'
|
||||||
- name: Create Windows Tar
|
- name: Create Windows Tar
|
||||||
uses: thedoctor0/zip-release@0.7.1
|
uses: thedoctor0/zip-release@0.7.6
|
||||||
with:
|
with:
|
||||||
type: 'tar'
|
type: 'tar'
|
||||||
filename: 'bgfx.cmake.binary.windows.${{ needs.version.outputs.tag }}.tar.gz'
|
filename: 'bgfx.cmake.binary.windows.${{ needs.version.outputs.tag }}.tar.gz'
|
||||||
directory: 'install/windows'
|
directory: 'install/windows'
|
||||||
path: 'bgfx.cmake'
|
path: 'bgfx.cmake'
|
||||||
- name: Create Linux Zip
|
- name: Create Linux Zip
|
||||||
uses: thedoctor0/zip-release@0.7.1
|
uses: thedoctor0/zip-release@0.7.6
|
||||||
with:
|
with:
|
||||||
type: 'zip'
|
type: 'zip'
|
||||||
filename: 'bgfx.cmake.binary.linux.${{ needs.version.outputs.tag }}.zip'
|
filename: 'bgfx.cmake.binary.linux.${{ needs.version.outputs.tag }}.zip'
|
||||||
directory: 'install/linux'
|
directory: 'install/linux'
|
||||||
path: 'bgfx.cmake'
|
path: 'bgfx.cmake'
|
||||||
- name: Create Linux Tar
|
- name: Create Linux Tar
|
||||||
uses: thedoctor0/zip-release@0.7.1
|
uses: thedoctor0/zip-release@0.7.6
|
||||||
with:
|
with:
|
||||||
type: 'tar'
|
type: 'tar'
|
||||||
filename: 'bgfx.cmake.binary.linux.${{ needs.version.outputs.tag }}.tar.gz'
|
filename: 'bgfx.cmake.binary.linux.${{ needs.version.outputs.tag }}.tar.gz'
|
||||||
directory: 'install/linux'
|
directory: 'install/linux'
|
||||||
path: 'bgfx.cmake'
|
path: 'bgfx.cmake'
|
||||||
- name: Create MacOS Zip
|
- name: Create MacOS Zip
|
||||||
uses: thedoctor0/zip-release@0.7.1
|
uses: thedoctor0/zip-release@0.7.6
|
||||||
with:
|
with:
|
||||||
type: 'zip'
|
type: 'zip'
|
||||||
filename: 'bgfx.cmake.binary.macos.${{ needs.version.outputs.tag }}.zip'
|
filename: 'bgfx.cmake.binary.macos.${{ needs.version.outputs.tag }}.zip'
|
||||||
directory: 'install/macos'
|
directory: 'install/macos'
|
||||||
path: 'bgfx.cmake'
|
path: 'bgfx.cmake'
|
||||||
- name: Create MacOS Tar
|
- name: Create MacOS Tar
|
||||||
uses: thedoctor0/zip-release@0.7.1
|
uses: thedoctor0/zip-release@0.7.6
|
||||||
with:
|
with:
|
||||||
type: 'tar'
|
type: 'tar'
|
||||||
filename: 'bgfx.cmake.binary.macos.${{ needs.version.outputs.tag }}.tar.gz'
|
filename: 'bgfx.cmake.binary.macos.${{ needs.version.outputs.tag }}.tar.gz'
|
||||||
|
|||||||
Reference in New Issue
Block a user