Skip to content

Commit

Permalink
update github actions (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX authored Dec 8, 2024
1 parent 3aa3792 commit 760eb1a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
10 changes: 5 additions & 5 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ jobs:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true

- uses: lukka/get-cmake@latest

- name: Clone vcpkg
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: microsoft/vcpkg
path: ${{ env.VCPKG_ROOT }}
submodules: true

- name: Restore vcpkg and its artifacts
uses: actions/cache@v2
uses: actions/cache@v4
with:
# The first path is where vcpkg generates artifacts while consuming the vcpkg.json manifest file.
# The second path is the location of vcpkg (it contains the vcpkg executable and data files).
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
run: cmake --build "${{env.CMAKE_BUILD_DIR}}" --config Release --target "${{ matrix.target }}" -j 6 --

- name: Upload a build artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
# Artifact name
name: slimevr-openvr-driver-${{ matrix.triplet }} # optional, default is artifact
Expand All @@ -88,7 +88,7 @@ jobs:
run: cmake -E tar "cf" "${{env.CMAKE_BUILD_DIR}}/slimevr-openvr-driver-${{ matrix.triplet }}.zip" --format=zip -- ${{env.CMAKE_BUILD_DIR}}/${{ matrix.release_dir }}/slimevr

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: "${{env.CMAKE_BUILD_DIR}}/slimevr-openvr-driver-${{ matrix.triplet }}.zip"
Expand Down

0 comments on commit 760eb1a

Please sign in to comment.