diff --git a/.github/workflows/deploy-cargo-docs.yaml b/.github/workflows/deploy-cargo-docs.yaml new file mode 100644 index 0000000..9f6a2c6 --- /dev/null +++ b/.github/workflows/deploy-cargo-docs.yaml @@ -0,0 +1,29 @@ +name: Deploy Docs to GitHub Pages + +on: + push: + branches: + - main + +jobs: + deploy-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Generate Documentation + run: cargo doc --no-deps + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc diff --git a/.github/workflows/rust-build-test.yaml b/.github/workflows/rust-build-test.yaml new file mode 100644 index 0000000..71a161a --- /dev/null +++ b/.github/workflows/rust-build-test.yaml @@ -0,0 +1,26 @@ +name: Rust + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Build + run: cargo build --release --verbose + + - name: Run tests + run: cargo test --verbose + + - name: Linting + run: make lint