From 9362ffcecd878e2cdf849a04442ebdc6db879f22 Mon Sep 17 00:00:00 2001 From: Andrey Zheleznov Date: Mon, 19 Feb 2024 17:35:41 +0300 Subject: [PATCH] Add GitHub Actions CI configuration --- .github/workflows/build.yml | 51 +++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..afc7b89 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +name: build + +on: + pull_request: + push: + branches: + - master + +defaults: + run: + shell: bash + +jobs: + check: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install Rust stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + default: true + components: rustfmt, clippy + + - name: Install Rust beta toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: beta + components: clippy + + - name: Install Rust nightly toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + components: clippy + + - name: Install Rust 1.70.0 toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.70.0 + components: clippy + + - name: Run build and test script + run: ./check.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bad168..a88a372 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Feature-gated advanced color and style control functions like `enable_ansi_colors_if_supported` and `set_ansi_color_scheme`. - API documentation with examples. - Tests and doc-tests. +- GitHub CI. [Unreleased]: https://github.com/zheland/custom-print/compare/v0.1.0...HEAD [0.1.0]: https://github.com/zheland/custom-print/compare/v0.0.0...v0.1.0