16 if: github.ref == 'refs/heads/master'
17 runs-on: ubuntu-latest
19 # returns null if no pre-release exists
20 - name: Get Commit SHA of Latest Pre-release
22 # Install required packages
24 sudo apt-get install -y curl jq
26 echo "COMMIT_SHA=$(jq -r 'map(select(.prerelease)) | first | .tag_name' <<< $(curl -s https://api.github.com/repos/${{ github.repository_owner }}/Stockfish/releases))" >> $GITHUB_ENV
28 # delete old previous pre-release and tag
29 - uses: dev-drprasad/delete-tag-and-release@v0.2.1
30 if: env.COMMIT_SHA != 'null'
32 tag_name: ${{ env.COMMIT_SHA }}
34 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 # The include checks currently fail because of broken LLVM nightly packages: https://github.com/llvm/llvm-project/issues/73402
38 # uses: ./.github/workflows/stockfish_analyzers.yml
40 uses: ./.github/workflows/stockfish_sanitizers.yml
42 uses: ./.github/workflows/stockfish_test.yml
44 uses: ./.github/workflows/stockfish_compile_test.yml
46 if: github.ref == 'refs/heads/master' || (startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag')
47 uses: ./.github/workflows/stockfish_binaries.yml
49 if: github.ref == 'refs/heads/master' || (startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag')
50 uses: ./.github/workflows/stockfish_arm_binaries.yml