Skip to content

Commit ff09053

Browse files
authored
chore: Update CI workflow and dependencies (#1)
1 parent 5ec9c25 commit ff09053

File tree

8 files changed

+86
-46
lines changed

8 files changed

+86
-46
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "*"
9+
pull_request:
10+
paths:
11+
- "nusamai-*/**"
12+
- ".github/**"
13+
- "*"
14+
env:
15+
CARGO_INCREMENTAL: 0
16+
CARGO_NET_RETRY: 10
17+
RUSTUP_MAX_RETRIES: 10
18+
RUST_BACKTRACE: short
19+
ACTION_LOG_DISABLE: true
20+
21+
jobs:
22+
check:
23+
name: cargo check
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: dtolnay/rust-toolchain@stable
28+
- name: Check
29+
run: cargo check --all
30+
31+
style:
32+
name: cargo fmt
33+
needs: check
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: dtolnay/rust-toolchain@stable
38+
with:
39+
components: rustfmt
40+
- name: rustfmt
41+
run: cargo fmt --all -- --check
42+
43+
warnings:
44+
runs-on: ubuntu-latest
45+
needs: check
46+
steps:
47+
- uses: actions/checkout@v4
48+
- uses: dtolnay/rust-toolchain@stable
49+
with:
50+
components: clippy
51+
- name: rustfmt
52+
run: cargo clippy --all -- -D warnings
53+
54+
test:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: dtolnay/rust-toolchain@stable
59+
- name: Run tests
60+
run: cargo test --workspace --all-targets --all-features

.github/workflows/test.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.taplo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://taplo.tamasfe.dev/configuration/formatter-options.html
2+
include = ["Cargo.toml", "*/Cargo.toml"]
3+
4+
[formatting]
5+
trailing_newline = true
6+
reorder_keys = true
7+
align_comments = false
8+
allowed_blank_lines = 1
9+
array_auto_collapse = false
10+
array_auto_expand = false
11+
reorder_arrays = true

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
2-
name = "cesiumtiles"
2+
authors = ["MIERUNE Inc. <[email protected]>", "Re:Earth Flow Contributors"]
33
edition = "2021"
4-
authors = ["MIERUNE Inc. <[email protected]>"]
54
license = "MIT"
5+
name = "cesiumtiles"
66

77
[dependencies]
8-
serde = { version = "1.0.197", features = ["derive"] }
9-
serde_json = { version = "1.0.114", features = ["indexmap", "float_roundtrip"] }
10-
serde_repr = "0.1.18"
8+
serde = { version = "1.0.208", features = ["derive"] }
9+
serde_json = { version = "1.0.125", features = ["float_roundtrip", "indexmap"] }
10+
serde_repr = "0.1.19"
1111

1212
[dev-dependencies]
1313
glob = "0.3.1"

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# 3D Tiles 1.1 (JSON models) for Rust
22

3-
[![Test](https://github.com/MIERUNE/cesiumtiles-rs/actions/workflows/test.yml/badge.svg)](https://github.com/MIERUNE/cesiumtiles-rs/actions/workflows/test.yml)
4-
[![codecov](https://codecov.io/gh/MIERUNE/cesiumtiles-rs/graph/badge.svg?token=cREJynPKKY)](https://codecov.io/gh/MIERUNE/cesiumtiles-rs)
5-
63
WIP

rust-toolchain.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
channel = "stable"
3+
components = ["rustc", "cargo", "clippy", "rustfmt", "rust-src"]

rustfmt.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Stable options
2+
use_field_init_shorthand = true
3+
4+
# # Unstable options
5+
# unstable_features = true
6+
# group_imports = "StdExternalCrate"
7+
# imports_granularity = "Crate"

tests/gltf_extensions.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
use std::io::BufReader;
2-
use std::io::Read;
3-
41
use serde::{Deserialize, Serialize};
52

63
use cesiumtiles::gltf_extensions::gltf;

0 commit comments

Comments
 (0)