Implement bulk endpoints #5
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: Build and Deploy | |
on: | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: Check ENState ⚒️ | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
path: [server, worker] | |
include: | |
- path: server | |
target: x86_64-unknown-linux-gnu | |
- path: worker | |
target: wasm32-unknown-unknown | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: | | |
rustup set auto-self-update disable | |
rustup toolchain install stable --profile minimal | |
rustup target add ${{ matrix.target }} | |
- name: Set up cargo cache | |
uses: actions/cache@v3 | |
continue-on-error: false | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
server/target/ | |
worker/target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo- | |
- run: cargo check --target ${{ matrix.target }} --release | |
working-directory: ${{ matrix.path }} | |