Update workflow action version (#851)
authoryjf2002ghty <47345902+yjf2002ghty@users.noreply.github.com>
Mon, 30 Dec 2024 10:37:20 +0000 (18:37 +0800)
committerGitHub <noreply@github.com>
Mon, 30 Dec 2024 10:37:20 +0000 (11:37 +0100)
.github/workflows/ffishjs.yml
.github/workflows/release.yml
.github/workflows/wheels.yml

index a6fba4e..23aa60b 100644 (file)
@@ -56,16 +56,16 @@ jobs:
       - uses: actions/checkout@v4
       - name: Setup cache
         id: cache-system-libraries
-        uses: actions/cache@v2
+        uses: actions/cache@v4
         with:
           path: ${{env.EM_CACHE_FOLDER}}
           key: emsdk-${{env.EM_VERSION}}-${{ runner.os }}
-      - uses: mymindstorm/setup-emsdk@v7
+      - uses: mymindstorm/setup-emsdk@v14
         with:
           version: ${{env.EM_VERSION}}
           actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
       - name: Use Node.js ${{ matrix.node-version }}
-        uses: actions/setup-node@v1
+        uses: actions/setup-node@v4
         with:
           node-version: ${{ matrix.node-version }}
       - name: Build ffish.js ES6/ES2015 module
index 4225284..65a62b4 100644 (file)
@@ -32,10 +32,12 @@ jobs:
         if: ${{ matrix.arch == 'x86-64' }}
         run: cd src && make clean && make -j build COMP=mingw ARCH=${{ matrix.arch }} EXE=fairy-stockfish-all_${{ matrix.arch }}.exe largeboards=yes all=yes && strip fairy-stockfish-all_${{ matrix.arch }}.exe
 
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
-          name: fairy-stockfish
+          name: fairy-stockfish-windows-${{ matrix.arch }}
           path: src/fairy-stockfish*.exe
+          if-no-files-found: error
+          compression-level: 9
 
   linux:
     strategy:
@@ -56,7 +58,9 @@ jobs:
         if: ${{ matrix.arch == 'x86-64' }}
         run: cd src && make clean && make -j build COMP=gcc ARCH=${{ matrix.arch }} EXE=fairy-stockfish-all_${{ matrix.arch }} largeboards=yes all=yes && strip fairy-stockfish-all_${{ matrix.arch }}
 
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
-          name: fairy-stockfish
+          name: fairy-stockfish-linux-${{ matrix.arch }}
           path: src/fairy-stockfish*
+          if-no-files-found: error
+          compression-level: 9
index 03a6894..f147840 100644 (file)
@@ -34,9 +34,9 @@ jobs:
           CIBW_SKIP: "pp* *-win32 *-manylinux_i686 *-musllinux_* cp36-* cp37-*"
           CIBW_TEST_COMMAND: python {project}/test.py
 
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
-          name: dist
+          name: dist-wheel-${{ matrix.os }}
           path: ./wheelhouse/*.whl
 
   build_sdist:
@@ -51,7 +51,7 @@ jobs:
       - name: Build sdist
         run: python setup.py sdist
 
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
-          name: dist
+          name: dist-source
           path: dist/*.tar.gz