Skip to content

Enhanced CI

Enhanced CI #33

Workflow file for this run

name: RustyServer-CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- run: |
echo "::group::[📁] - Current project -> $GITHUB_REPOSITORY"
echo "[🚀] - Project version -> $version"
echo "[🧪] - CI Actor -> $GITHUB_ACTOR (commit $GITHUB_SHA)"
echo "::endgroup::"
env:
version: 0.1.0
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose
lint-clippy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Clippy
run: cargo clippy --all-targets --all-features