From 0adcdd995d03046b3982f0a8e95b5a18dcf40423 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sat, 6 May 2023 00:43:46 +0900 Subject: [PATCH 1/2] Remove unused workspace dependencies --- Cargo.toml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5da28823..46180a77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,41 +18,19 @@ members = [ ahash = "0.7.6" anyhow = "1.0.45" ascii = "1.0" -atty = "0.2.14" -bincode = "1.3.3" bitflags = "1.3.2" bstr = "0.2.17" cfg-if = "1.0" -chrono = "0.4.19" -crossbeam-utils = "0.8.9" -flame = "0.2.2" -glob = "0.3" -hex = "0.4.3" -indexmap = "1.8.1" insta = "1.14.0" itertools = "0.10.3" -libc = "0.2.133" log = "0.4.16" -nix = "0.26" num-complex = "0.4.0" num-bigint = "0.4.3" -num-integer = "0.1.44" -num-rational = "0.4.0" num-traits = "0.2" -num_enum = "0.5.7" -once_cell = "1.13" -parking_lot = "0.12" -paste = "1.0.7" rand = "0.8.5" -rustyline = "11" serde = "1.0" -schannel = "0.1.19" static_assertions = "1.1" -syn = "1.0.91" -thiserror = "1.0" -thread_local = "1.1.4" unicode_names2 = { version = "0.6.0", git = "https://github.com/youknowone/unicode_names2.git", rev = "4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" } -widestring = "0.5.1" [profile.dev.package."*"] opt-level = 3 From e28f333f23d3091913089fa0ee6e0227c0bf0af9 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sat, 6 May 2023 03:39:20 +0900 Subject: [PATCH 2/2] Add CI --- .github/workflows/ci.yaml | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..8915ee0e --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,54 @@ +on: + push: + branches: [main, release] + pull_request: + types: [opened, synchronize, reopened] + merge_group: + +name: CI + +# Cancel previous workflows if they are the same workflow on same ref (branch/tags) +# with the same event (push/pull_request) even they are in progress. +# This setting will help reduce the number of duplicated workflows. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} + cancel-in-progress: true + +env: + CARGO_ARGS: --no-default-features --features stdlib,zlib,importlib,encodings,ssl,jit + +jobs: + rust_tests: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }} + env: + RUST_BACKTRACE: full + name: Run rust tests + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + fail-fast: false + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - name: Set up the Mac environment + run: brew install autoconf automake libtool + if: runner.os == 'macOS' + + - uses: Swatinem/rust-cache@v2 + + - name: run tests + run: cargo test --all --all-features + + lint: + name: Check Rust code with rustfmt and clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + - name: run rustfmt + run: cargo fmt --all -- --check + - name: run clippy + run: cargo clippy --all --all-features -- -Dwarnings