Skip to content

updated

updated #38

Workflow file for this run

name: Rust Load Balancer CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# Caching target directory
- name: Cache Cargo target dir
uses: actions/cache@v2
with:
path: target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-target-
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Set number of cores
run: echo "CARGO_BUILD_JOBS=$(nproc)" >> $GITHUB_ENV
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
env:
CARGO_INCREMENTAL: 0