Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Minecraft 1.20.2

Minecraft 1.20.2 #16

Workflow file for this run

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]
env:
CARGO_TERM_COLOR: always
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/rust.yml') }}
- name: Download library minecraft-protocol-derive
run: git clone https://github.com/Mubelotix/minecraft-protocol-derive ../minecraft-packet-derive || (cd ../minecraft-packet-derive ; git pull)
- name: Build
run: cargo build
- name: Run tests
run: cargo test