1.7.0: Port core from 2.0-alpha #742
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gauntlet | |
on: | |
- pull_request | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
upstream_gauntlet: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up script permissions | |
run: chmod +x ./gauntlet.sh | |
- name: Set up local master branch | |
run: git fetch origin master:master | |
- name: Run script and collect results | |
env: | |
CURRENT_BRANCH: ${{ github.head_ref }} | |
run: | | |
./gauntlet.sh || echo "GAUNTLET_FAILED=1" >> $GITHUB_ENV | |
- uses: mshick/add-pr-comment@v2 | |
with: | |
message-path: fast-chess/message.txt | |
message-id: upstream | |
- name: Fail if gauntlet failed | |
run: | | |
if [ -n "$GAUNTLET_FAILED" ]; then | |
exit 1 | |
fi | |
upstream_gauntlet_multithreaded: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up script permissions | |
run: chmod +x ./gauntlet.sh | |
- name: Set up local master branch | |
run: git fetch origin master:master | |
- name: Run script and collect results | |
env: | |
CURRENT_BRANCH: ${{ github.head_ref }} | |
run: | | |
./gauntlet.sh master 1 4 256 100 || echo "GAUNTLET_FAILED=1" >> $GITHUB_ENV | |
- uses: mshick/add-pr-comment@v2 | |
with: | |
message-path: fast-chess/message.txt | |
message-id: upstream_multithreaded | |
- name: Fail if gauntlet failed | |
run: | | |
if [ -n "$GAUNTLET_FAILED" ]; then | |
exit 1 | |
fi | |
release_gauntlet: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up script permissions | |
run: chmod +x ./gauntlet.sh | |
- name: Set up local release tag | |
run: git fetch origin $(git describe --tags --abbrev=0) | |
- name: Run script and collect results | |
env: | |
CURRENT_BRANCH: ${{ github.head_ref }} | |
run: | | |
./gauntlet.sh $(git describe --tags --abbrev=0) || echo "GAUNTLET_FAILED=1" >> $GITHUB_ENV | |
- uses: mshick/add-pr-comment@v2 | |
with: | |
message-path: fast-chess/message.txt | |
message-id: release | |
- name: Fail if gauntlet failed | |
run: | | |
if [ -n "$GAUNTLET_FAILED" ]; then | |
exit 1 | |
fi | |
release_gauntlet_multithreaded: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up script permissions | |
run: chmod +x ./gauntlet.sh | |
- name: Set up local release tag | |
run: git fetch origin $(git describe --tags --abbrev=0) | |
- name: Run script and collect results | |
env: | |
CURRENT_BRANCH: ${{ github.head_ref }} | |
run: | | |
./gauntlet.sh $(git describe --tags --abbrev=0) 1 4 256 100 || echo "GAUNTLET_FAILED=1" >> $GITHUB_ENV | |
- uses: mshick/add-pr-comment@v2 | |
with: | |
message-path: fast-chess/message.txt | |
message-id: release_multithreaded | |
- name: Fail if gauntlet failed | |
run: | | |
if [ -n "$GAUNTLET_FAILED" ]; then | |
exit 1 | |
fi |