diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f265ae7..5a68df51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: matrix: wasm_simd: ['yes', 'no'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -85,10 +85,17 @@ jobs: run: working-directory: src/emscripten steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: sudo apt update && sudo apt -y install docker + + - run: | + sudo curl -L https://github.com/docker/compose/releases/download/v2.30.3/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose + sudo chmod +x /usr/local/bin/docker-compose + docker-compose --version + - run: docker-compose pull emscripten node - name: Extract bench signature from git log @@ -111,16 +118,9 @@ jobs: docker-compose run -e uci_exe="node public/uci.js" -e sign_ref=${{ env.sign_ref }} -e UCI_NNUE_FILE="../${{ env.default_net }}" node bash tests/bench-signature.sh - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: no-embedded-nnue + name: fairy-stockfish.wasm path: src/emscripten/public/stockfish* - - - name: Publish to NPM - if: startsWith(github.ref, 'refs/tags/') - working-directory: src/emscripten/public - run: | - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - npm publish - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + compression-level: 9 + if-no-files-found: error