Browse Source

Updated workflows

Ray 1 year ago
parent
commit
77eeb0010e

+ 4 - 8
.github/workflows/android.yml

@@ -88,13 +88,9 @@ jobs:
         path: ./build/${{ env.RELEASE_NAME }}.tar.gz
         path: ./build/${{ env.RELEASE_NAME }}.tar.gz
         
         
     - name: Upload Artifact to Release
     - name: Upload Artifact to Release
-      uses: actions/[email protected]
+      uses: softprops/action-gh-release@v1
+      with:
+        files: ./build/${{ env.RELEASE_NAME }}.tar.gz
       env:
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-      with:
-          upload_url: ${{ github.event.release.upload_url }}
-          asset_path: ./build/${{ env.RELEASE_NAME }}.tar.gz
-          asset_name: ${{ env.RELEASE_NAME }}.tar.gz
-          asset_content_type: application/gzip
-      if: github.event_name == 'release' && github.event.action == 'published'  
-
+      if: github.event_name == 'release' && github.event.action == 'published'

+ 2 - 2
.github/workflows/cmake.yml

@@ -36,7 +36,7 @@ jobs:
     runs-on: windows-latest
     runs-on: windows-latest
 
 
     steps:
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
 
 
       - name: Create Build Environment
       - name: Create Build Environment
         # Some projects don't allow in-source building, so create a separate build directory
         # Some projects don't allow in-source building, so create a separate build directory
@@ -75,7 +75,7 @@ jobs:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
 
 
     steps:
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
 
 
       - name: Create Build Environment
       - name: Create Build Environment
         # Some projects don't allow in-source building, so create a separate build directory
         # Some projects don't allow in-source building, so create a separate build directory

+ 1 - 1
.github/workflows/codeql.yml

@@ -44,7 +44,7 @@ jobs:
 
 
     steps:
     steps:
     - name: Checkout repository
     - name: Checkout repository
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
       with:
       with:
         submodules: recursive
         submodules: recursive
 
 

+ 4 - 7
.github/workflows/linux.yml

@@ -100,12 +100,9 @@ jobs:
         path: ./build/${{ env.RELEASE_NAME }}.tar.gz
         path: ./build/${{ env.RELEASE_NAME }}.tar.gz
         
         
     - name: Upload Artifact to Release
     - name: Upload Artifact to Release
-      uses: actions/[email protected]
+      uses: softprops/action-gh-release@v1
+      with:
+        files: ./build/${{ env.RELEASE_NAME }}.tar.gz
       env:
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-      with:
-          upload_url: ${{ github.event.release.upload_url }}
-          asset_path: ./build/${{ env.RELEASE_NAME }}.tar.gz
-          asset_name: ${{ env.RELEASE_NAME }}.tar.gz
-          asset_content_type: application/gzip
-      if: github.event_name == 'release' && github.event.action == 'published'  
+      if: github.event_name == 'release' && github.event.action == 'published'

+ 1 - 1
.github/workflows/linux_examples.yml

@@ -22,7 +22,7 @@ jobs:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     steps:
     steps:
     - name: Checkout code
     - name: Checkout code
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
     
     
     - name: Setup Environment
     - name: Setup Environment
       run: | 
       run: | 

+ 3 - 6
.github/workflows/macos.yml

@@ -105,12 +105,9 @@ jobs:
         path: ./build/${{ env.RELEASE_NAME }}.tar.gz
         path: ./build/${{ env.RELEASE_NAME }}.tar.gz
         
         
     - name: Upload Artifact to Release
     - name: Upload Artifact to Release
-      uses: actions/[email protected]
+      uses: softprops/action-gh-release@v1
+      with:
+        files: ./build/${{ env.RELEASE_NAME }}.tar.gz
       env:
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-      with:
-          upload_url: ${{ github.event.release.upload_url }}
-          asset_path: ./build/${{ env.RELEASE_NAME }}.tar.gz
-          asset_name: ${{ env.RELEASE_NAME }}.tar.gz
-          asset_content_type: application/gzip
       if: github.event_name == 'release' && github.event.action == 'published'
       if: github.event_name == 'release' && github.event.action == 'published'

+ 1 - 1
.github/workflows/parse.yml

@@ -11,7 +11,7 @@ jobs:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
 
 
     steps:
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
 
 
       - name: Update parse files
       - name: Update parse files
         working-directory: parser
         working-directory: parser

+ 5 - 8
.github/workflows/webassembly.yml

@@ -27,9 +27,9 @@ jobs:
       uses: actions/checkout@master
       uses: actions/checkout@master
   
   
     - name: Setup emsdk
     - name: Setup emsdk
-      uses: mymindstorm/setup-emsdk@v12
+      uses: mymindstorm/setup-emsdk@v14
       with:
       with:
-        version: 3.1.30
+        version: 3.1.54
         actions-cache-folder: 'emsdk-cache'
         actions-cache-folder: 'emsdk-cache'
         
         
     - name: Setup Release Version
     - name: Setup Release Version
@@ -75,12 +75,9 @@ jobs:
         path: ./build/${{ env.RELEASE_NAME }}.zip
         path: ./build/${{ env.RELEASE_NAME }}.zip
         
         
     - name: Upload Artifact to Release
     - name: Upload Artifact to Release
-      uses: actions/[email protected]
+      uses: softprops/action-gh-release@v1
+      with:
+        files: ./build/${{ env.RELEASE_NAME }}.zip
       env:
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-      with:
-          upload_url: ${{ github.event.release.upload_url }}
-          asset_path: ./build/${{ env.RELEASE_NAME }}.zip
-          asset_name: ${{ env.RELEASE_NAME }}.zip
-          asset_content_type: application/zip
       if: github.event_name == 'release' && github.event.action == 'published'
       if: github.event_name == 'release' && github.event.action == 'published'

+ 4 - 7
.github/workflows/windows.yml

@@ -74,7 +74,7 @@ jobs:
 
 
     # Setup MSBuild.exe path if required
     # Setup MSBuild.exe path if required
     - name: Setup MSBuild
     - name: Setup MSBuild
-      uses: microsoft/setup-msbuild@v1.1
+      uses: microsoft/setup-msbuild@v2
       if: matrix.compiler == 'msvc16'
       if: matrix.compiler == 'msvc16'
 
 
     - name: Build Library (MinGW-w64 32bit)
     - name: Build Library (MinGW-w64 32bit)
@@ -139,12 +139,9 @@ jobs:
         path: ./build/${{ env.RELEASE_NAME }}.zip
         path: ./build/${{ env.RELEASE_NAME }}.zip
         
         
     - name: Upload Artifact to Release
     - name: Upload Artifact to Release
-      uses: actions/[email protected]
+      uses: softprops/action-gh-release@v1
+      with:
+        files: ./build/${{ env.RELEASE_NAME }}.zip
       env:
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-      with:
-          upload_url: ${{ github.event.release.upload_url }}
-          asset_path: ./build/${{ env.RELEASE_NAME }}.zip
-          asset_name: ${{ env.RELEASE_NAME }}.zip
-          asset_content_type: application/zip
       if: github.event_name == 'release' && github.event.action == 'published'
       if: github.event_name == 'release' && github.event.action == 'published'

+ 1 - 1
.github/workflows/windows_examples.yml

@@ -22,7 +22,7 @@ jobs:
     runs-on: windows-latest
     runs-on: windows-latest
 
 
     steps:
     steps:
-    - uses: actions/checkout@v3
+    - uses: actions/checkout@v4
 
 
     - name: Add MSBuild to PATH
     - name: Add MSBuild to PATH
       uses: microsoft/setup-msbuild@v1
       uses: microsoft/setup-msbuild@v1