Skip to content

"enemy of my friend" feature and total refactor #47

"enemy of my friend" feature and total refactor

"enemy of my friend" feature and total refactor #47

Workflow file for this run

name: Build and test
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
workflow_dispatch:
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cargo build
- name: Run tests
run: |
cargo test
memory_consumption:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cargo build --release
- name: Run tests
run: |
export MEM_KB=`/usr/bin/time -f "%M" cargo test smoke_memory --release --quiet 2>&1 1>/dev/null`
if [ $MEM_KB -gt 300000 ]; then
exit 1
fi