Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Github action versions to non-deprecated ones #1005

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/build-gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand All @@ -51,7 +51,7 @@ jobs:
CI: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -72,9 +72,9 @@ jobs:
with:
shared-key: "${{ matrix.os }}"

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand All @@ -91,7 +91,7 @@ jobs:

- if: matrix.os == 'windows-latest'
name: Upload a Build Artifact (Windows)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
# Artifact name
name: SlimeVR-GUI-Windows
Expand All @@ -100,7 +100,7 @@ jobs:

- if: matrix.os == 'ubuntu-22.04'
name: Upload a Build Artifact (Linux)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
# Artifact name
name: SlimeVR-GUI-Linux
Expand All @@ -109,7 +109,7 @@ jobs:

- if: matrix.os == 'macos-latest'
name: Upload a Build Artifact (macOS)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
# Artifact name
name: SlimeVR-GUI-macOS
Expand Down
70 changes: 35 additions & 35 deletions .github/workflows/gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Get tags
run: git fetch --tags origin --recurse-submodules=no --force

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "adopt"

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3

- run: mkdir ./gui/dist && touch ./gui/dist/somefile
shell: bash
Expand All @@ -49,35 +49,35 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Get tags
run: git fetch --tags origin --recurse-submodules=no --force

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "adopt"

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3

- name: Build with Gradle
run: ./gradlew shadowJar

- name: Upload the Server JAR as a Build Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
# Artifact name
name: "SlimeVR-Server" # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: server/desktop/build/libs/*

- name: Upload to draft release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
Expand All @@ -89,25 +89,25 @@ jobs:
bundle-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Get tags
run: git fetch --tags origin --recurse-submodules=no --force

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "adopt"

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand All @@ -121,7 +121,7 @@ jobs:
run: ./gradlew :server:android:assembleDebug

- name: Upload the Android Build Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
# Artifact name
name: "SlimeVR-Android" # optional, default is artifact
Expand All @@ -134,7 +134,7 @@ jobs:
cp server/android/build/outputs/apk/debug/android-debug.apk ./SlimeVR-android.apk

- name: Upload to draft release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
Expand All @@ -148,11 +148,11 @@ jobs:
needs: [build, test]
if: contains(fromJSON('["workflow_dispatch", "create"]'), github.event_name)
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: "SlimeVR-Server"
path: server/desktop/build/libs/
Expand All @@ -173,9 +173,9 @@ jobs:
with:
shared-key: "ubuntu-22.04"

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand All @@ -185,7 +185,7 @@ jobs:
pnpm i
pnpm run tauri build

- uses: actions/upload-artifact@v3.1.0
- uses: actions/upload-artifact@v4
with:
name: SlimeVR-GUI-Deb
path: target/release/bundle/deb/slimevr*.deb
Expand All @@ -205,7 +205,7 @@ jobs:
chmod 644 squashfs-root/slimevr.jar
appimagetool squashfs-root slimevr*.AppImage

- uses: actions/upload-artifact@v3.1.0
- uses: actions/upload-artifact@v4
with:
name: SlimeVR-GUI-AppImage
path: target/release/bundle/appimage/slimevr*.AppImage
Expand All @@ -217,7 +217,7 @@ jobs:
cp target/release/bundle/deb/slimevr*.deb ./SlimeVR-amd64.deb

- name: Upload to draft release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
Expand All @@ -232,11 +232,11 @@ jobs:
needs: [build, test]
if: contains(fromJSON('["workflow_dispatch", "create"]'), github.event_name)
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: "SlimeVR-Server"
path: server/desktop/build/libs/
Expand All @@ -246,9 +246,9 @@ jobs:
with:
shared-key: "macos-latest"

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand All @@ -269,12 +269,12 @@ jobs:
--volicon ../macos/slimevr.app/Contents/Resources/icon.icns --skip-jenkins \
--eula ../../../../LICENSE-MIT slimevr.dmg ../macos/slimevr.app

- uses: actions/upload-artifact@v3.1.0
- uses: actions/upload-artifact@v4
with:
name: SlimeVR-GUI-MacApp
path: target/universal-apple-darwin/release/bundle/macos/slimevr*.app

- uses: actions/upload-artifact@v3.1.0
- uses: actions/upload-artifact@v4
with:
name: SlimeVR-GUI-MacDmg
path: target/universal-apple-darwin/release/bundle/dmg/slimevr.dmg
Expand All @@ -285,7 +285,7 @@ jobs:
cp target/universal-apple-darwin/release/bundle/dmg/slimevr.dmg ./SlimeVR-mac.dmg

- name: Upload to draft release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
Expand All @@ -299,11 +299,11 @@ jobs:
needs: [build, test]
if: contains(fromJSON('["workflow_dispatch", "create"]'), github.event_name)
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: "SlimeVR-Server"
path: server/desktop/build/libs/
Expand All @@ -313,9 +313,9 @@ jobs:
with:
shared-key: "windows-latest"

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand All @@ -341,13 +341,13 @@ jobs:
mv ./SlimeVR/slimevr.exe ./SlimeVR/slimevr-ui.exe
7z a -tzip SlimeVR.zip ./SlimeVR/

- uses: actions/upload-artifact@v3.1.0
- uses: actions/upload-artifact@v4
with:
name: SlimeVR-GUI-Windows
path: ./SlimeVR*.zip

- name: Upload to draft release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pontoon-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
pull-requests: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: repo-sync/pull-request@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: pontoon
submodules: recursive
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Rebase
run: |
git config --local user.name "slimevr-bot"
git config --local user.email pantoon@slimevr.dev
git config --local user.email 'pantoon@slimevr.dev'
git fetch origin main
git rebase origin/main
git submodule update
Expand All @@ -36,3 +36,4 @@ jobs:
commit-message: "update"
force-push: "true"
name: "slimevr-bot"
email: "pantoon@slimevr.dev"