forked from widberg/bgfx.cmake
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions: bump actions. fixes upload-artifact@v3 failures
- Loading branch information
1 parent
cf79284
commit 36a0d1d
Showing
3 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
name: cmake-format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
@@ -21,7 +21,7 @@ jobs: | |
if: startsWith(github.event_name, 'pull_request') | ||
- name: Format CMake files | ||
id: cmake-format | ||
uses: PuneetMatharu/cmake-format-lint-action@main | ||
uses: PuneetMatharu/cmake-format-lint-action@v1.0.6 | ||
with: | ||
args: --config-files .cmake-format.py --check | ||
# Run only if a PR and cmake-format has failed | ||
|
@@ -31,7 +31,7 @@ jobs: | |
needs: cmake-format-check | ||
if: always() && startsWith(github.event_name, 'pull_request') && needs.cmake-format-check.result == 'failure' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
@@ -40,7 +40,7 @@ jobs: | |
if: startsWith(github.event_name, 'pull_request') | ||
- name: Format CMake files | ||
id: cmake-format | ||
uses: PuneetMatharu/[email protected].0 | ||
uses: PuneetMatharu/[email protected].6 | ||
with: | ||
args: --config-files .cmake-format.py --in-place | ||
- run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
sha: ${{ steps.version.outputs.sha }} | ||
tag: ${{ steps.version.outputs.tag }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
@@ -51,7 +51,7 @@ jobs: | |
CMAKE_INSTALL_DIR: ${{ github.workspace }}/install/ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install Linux dependencies | ||
|
@@ -80,7 +80,7 @@ jobs: | |
- name: Build | ||
run: | | ||
cmake --build "${{ env.CMAKE_BUILD_DIR }}" --target install --config Release | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.os }} | ||
path: ${{ github.workspace }}/install/ | ||
|
@@ -93,7 +93,7 @@ jobs: | |
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
@@ -102,69 +102,69 @@ jobs: | |
find src/bgfx.cmake -name ".git*" -exec rm -rf {} + | ||
find src/bgfx.cmake -name ".editorconfig" -delete | ||
rm src/bgfx.cmake/.cmake-format.py | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: windows-latest | ||
path: ${{ github.workspace }}/install/windows/bgfx.cmake | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: ubuntu-latest | ||
path: ${{ github.workspace }}/install/linux/bgfx.cmake | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: macos-latest | ||
path: ${{ github.workspace }}/install/macos/bgfx.cmake | ||
- name: Create Source Zip | ||
uses: thedoctor0/[email protected].1 | ||
uses: thedoctor0/[email protected].6 | ||
with: | ||
type: 'zip' | ||
filename: 'bgfx.cmake.${{ needs.version.outputs.tag }}.zip' | ||
directory: 'src' | ||
path: 'bgfx.cmake' | ||
- name: Create Source Tar | ||
uses: thedoctor0/[email protected].1 | ||
uses: thedoctor0/[email protected].6 | ||
with: | ||
type: 'tar' | ||
filename: 'bgfx.cmake.${{ needs.version.outputs.tag }}.tar.gz' | ||
directory: 'src' | ||
path: 'bgfx.cmake' | ||
- name: Create Windows Zip | ||
uses: thedoctor0/[email protected].1 | ||
uses: thedoctor0/[email protected].6 | ||
with: | ||
type: 'zip' | ||
filename: 'bgfx.cmake.binary.windows.${{ needs.version.outputs.tag }}.zip' | ||
directory: 'install/windows' | ||
path: 'bgfx.cmake' | ||
- name: Create Windows Tar | ||
uses: thedoctor0/[email protected].1 | ||
uses: thedoctor0/[email protected].6 | ||
with: | ||
type: 'tar' | ||
filename: 'bgfx.cmake.binary.windows.${{ needs.version.outputs.tag }}.tar.gz' | ||
directory: 'install/windows' | ||
path: 'bgfx.cmake' | ||
- name: Create Linux Zip | ||
uses: thedoctor0/[email protected].1 | ||
uses: thedoctor0/[email protected].6 | ||
with: | ||
type: 'zip' | ||
filename: 'bgfx.cmake.binary.linux.${{ needs.version.outputs.tag }}.zip' | ||
directory: 'install/linux' | ||
path: 'bgfx.cmake' | ||
- name: Create Linux Tar | ||
uses: thedoctor0/[email protected].1 | ||
uses: thedoctor0/[email protected].6 | ||
with: | ||
type: 'tar' | ||
filename: 'bgfx.cmake.binary.linux.${{ needs.version.outputs.tag }}.tar.gz' | ||
directory: 'install/linux' | ||
path: 'bgfx.cmake' | ||
- name: Create MacOS Zip | ||
uses: thedoctor0/[email protected].1 | ||
uses: thedoctor0/[email protected].6 | ||
with: | ||
type: 'zip' | ||
filename: 'bgfx.cmake.binary.macos.${{ needs.version.outputs.tag }}.zip' | ||
directory: 'install/macos' | ||
path: 'bgfx.cmake' | ||
- name: Create MacOS Tar | ||
uses: thedoctor0/[email protected].1 | ||
uses: thedoctor0/[email protected].6 | ||
with: | ||
type: 'tar' | ||
filename: 'bgfx.cmake.binary.macos.${{ needs.version.outputs.tag }}.tar.gz' | ||
|