Added option to run a match on randomly generated boards. #91
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: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install alsa | |
run: sudo apt update; sudo apt install libasound2-dev | |
- name: Build | |
run: cargo build --release -p liberty_chess_gui | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: liberty-chess-gui | |
path: target/release/liberty_chess_gui | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check Format | |
run: cargo fmt --check | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install alsa | |
run: sudo apt update; sudo apt install libasound2-dev | |
- name: install cargo-all-features | |
run: cargo install cargo-all-features | |
- name: Run Tests | |
run: cargo test-all-features | |
appease_microsoft: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Appease Microsoft by supporting their OS monopoly | |
run: cargo build --release -p liberty_chess_gui | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: monopoly-chess | |
path: target/release/liberty_chess_gui.exe | |
oxidation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --release --bin oxidation | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: oxidation | |
path: target/release/oxidation | |
oxidation_windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --release --bin oxidation | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: oxidation-windows | |
path: target/release/oxidation.exe |