From 3e8bb6da19e2267f7506c94a6c3b7b9520ad0bd8 Mon Sep 17 00:00:00 2001 From: Nan Date: Sun, 7 Jan 2024 16:41:31 +0800 Subject: [PATCH] debug CI --- .circleci/config.yml | 24 ++++++++++++++++++++++++ .github/workflows/main.yml | 25 +++++++++++++++++++++++++ README.md | 3 +++ 3 files changed, 52 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .github/workflows/main.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..f9b0fd1 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,24 @@ +version: 2.1 + +jobs: + linux_x86_64: + docker: + - image: cimg/rust:1.75.0 + resource_class: x86.medium + steps: + - checkout + - run: cargo --version && cargo test --release + + linux_aarch64: + docker: + - image: cimg/rust:1.75.0 + resource_class: arm.medium + steps: + - checkout + - run: cargo --version && cargo test --release + +workflows: + deterministic: + jobs: + - linux_x86_64 + - linux_aarch64 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6d303ae --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Main + +on: + push: + branches: [ "master", "test" ] + pull_request: + branches: [ "master", "test" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --release + - name: Run tests + run: cargo test --release diff --git a/README.md b/README.md index eb85484..e041784 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +![github actions](https://github.com/FenQiDian/ozz-animation-rs/actions/workflows/main.yml/badge.svg) +[![CircleCI](https://circleci.com/gh/cci-jyo5z/ozz-animation-rs.svg?style=shield)](https://github.com/FenQiDian/ozz-animation-rs) + # ozz-animation-rust A rust runtime library for ozz-animation with fixed-point support.