Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yjf2002ghty authored Nov 27, 2024
1 parent c61bb8f commit 23d4bfa
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
wasm_simd: ['yes', 'no']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 23d4bfa

Please sign in to comment.