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

ci: update GitHub actions #14129

Merged
merged 1 commit into from
Oct 2, 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
10 changes: 5 additions & 5 deletions .github/actions/build-android/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ runs:
shell: bash

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'npm'

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ inputs.java-version }}
Expand All @@ -36,7 +36,7 @@ runs:
shell: bash

- name: Cache Gradle packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -58,7 +58,7 @@ runs:
${{ runner.os }}-ccache-

- name: Cache V8
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: dist/android/libv8
key: libv8-${{ hashFiles('dist/android/libv8/**') }}
Expand All @@ -84,7 +84,7 @@ runs:
dist/tmp/common
shell: bash

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: android-build
retention-days: 1
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/build-ios/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ inputs:
runs:
using: composite
steps:
- name: Use Node.js 16.x
uses: actions/setup-node@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: ${{ inputs.node-version }}
cache: 'npm'

- name: Install dependencies
Expand All @@ -34,7 +34,7 @@ runs:
iphone/TitaniumKit/build/TitaniumKit.xcframework
shell: bash

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ios-build
retention-days: 1
Expand Down
22 changes: 11 additions & 11 deletions .github/actions/package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ inputs:
runs:
using: composite
steps:
- name: Use Node.js 16.x
uses: actions/setup-node@v3
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'npm'

- name: Use JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ inputs.java-version }}
Expand All @@ -32,7 +32,7 @@ runs:
shell: bash

- name: Cache Gradle packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -41,15 +41,15 @@ runs:
restore-keys: |
${{ runner.os }}-gradle-

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: android-build

- name: Extract Android build output
run: tar -xzvf android-build.tar.gz
shell: bash

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ios-build

Expand All @@ -58,7 +58,7 @@ runs:
shell: bash

- name: Cache Native Modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.SDK_BUILD_CACHE_DIR }}
key: native-modules-${{ github.sha }}
Expand All @@ -70,21 +70,21 @@ runs:
shell: bash

- name: Archive OSX artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mobilesdk-${{ inputs.vtag }}-osx
path: |
dist/mobilesdk-*-osx.zip

- name: Archive win32 artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mobilesdk-${{ inputs.vtag }}-win32
path: |
dist/mobilesdk-*-win32.zip

- name: Archive Linux artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: mobilesdk-${{ inputs.vtag }}-linux
path: |
Expand All @@ -98,7 +98,7 @@ runs:
rm -f ~/.gradle/caches/modules-2/gc.properties
shell: bash

- uses: geekyeggo/delete-artifact@v2
- uses: geekyeggo/delete-artifact@v5
with:
name: |
android-build
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
USE_CCACHE: 1
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Android build
Expand All @@ -33,7 +33,7 @@ jobs:
DEVELOPER_DIR: /Applications/Xcode_14.3.app/Contents/Developer
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: iOS build
Expand All @@ -46,12 +46,12 @@ jobs:
name: JavaScript
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js 16.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
cache: 'npm'
Expand All @@ -71,7 +71,7 @@ jobs:
needs: [android, ios, js]
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create version tag
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
name: Docs
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js 16.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/regen-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Repository Dispatch
if: github.event.workflow_run.conclusion == 'success'
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: regen-builds
repository: tidev/downloads-www
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/regen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
Expand All @@ -32,7 +32,7 @@ jobs:
name: Lint

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: regen-api-docs
token: ${{ secrets.REGEN_DOCS_GITHUB_TOKEN }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
vtag: ${{ steps.vtag.outputs.vtag }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
Expand All @@ -43,7 +43,7 @@ jobs:
echo "vtag=${VTAG}" >> $GITHUB_ENV
echo "vtag=${VTAG}" >> $GITHUB_OUTPUT
- name: Validate version
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
vtag: ${{ env.vtag }}
with:
Expand All @@ -70,7 +70,7 @@ jobs:
USE_CCACHE: 1
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
Expand All @@ -90,7 +90,7 @@ jobs:
DEVELOPER_DIR: /Applications/Xcode_14.3.app/Contents/Developer
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
Expand All @@ -109,7 +109,7 @@ jobs:
needs: [validate, android, ios]
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
Expand All @@ -129,21 +129,21 @@ jobs:
vtag: ${{ needs.validate.outputs.vtag }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
- run: echo ${{ env.vtag }}
- name: Download Linux artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: mobilesdk-${{ env.vtag }}-linux
- name: Download MacOS artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: mobilesdk-${{ env.vtag }}-osx
- name: Download Windows artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: mobilesdk-${{ env.vtag }}-win32
- name: Create and push tag
Expand All @@ -155,14 +155,14 @@ jobs:
git push origin "${TAG_VERSION}"
echo "clean-tag=${TAG_VERSION}" >> $GITHUB_ENV
- name: Upload SDK zips (GA)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: ${{ github.event.inputs.release-type == 'GA' }}
with:
files: mobilesdk-${{ env.vtag }}-*
tag_name: ${{ env.clean-tag }}
name: ${{ env.vtag }}
- name: Upload SDK zips (non-GA)
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: ${{ github.event.inputs.release-type != 'GA' }}
with:
files: mobilesdk-${{ env.vtag }}-*
Expand All @@ -178,7 +178,7 @@ jobs:
git commit -m "chore(release): bump version"
git push
- name: Regen Builds
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
event-type: regen-builds
repository: tidev/downloads-www
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sponsors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Update Sponsors
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update Sponsors in README.md
Expand All @@ -20,4 +20,4 @@ jobs:
token: ${{ secrets.SPONSORS_README_TOKEN }}
file: 'README.md'
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
Loading