Skip to content

Commit

Permalink
Add GitHub Actions CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
zheland committed Feb 19, 2024
1 parent f42ce0c commit 9362ffc
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9362ffc

Please sign in to comment.