Skip to content

Commit

Permalink
ci: update actions and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Sep 13, 2024
1 parent 96022df commit 6632db2
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 105 deletions.
105 changes: 0 additions & 105 deletions .github/workflows/build.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI
on:
pull_request:
push:
branches:
- "main"

jobs:
test:
name: Test Suite
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install toolchain
run: rustup toolchain install stable --profile minimal

- uses: Swatinem/rust-cache@v2

- name: Run tests
run: cargo test

readme:
runs-on: ubuntu-latest
name: Update readme
needs: [test]
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}

- name: Install toolchain
run: rustup toolchain install stable --profile minimal

- uses: Swatinem/rust-cache@v2

- name: Update readme
run: make readme

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "ci: Update readme"
branch: ${{ github.head_ref }}
commit_user_name: github-actions[bot]
commit_user_email: github-actions[bot]@users.noreply.github.com
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

0 comments on commit 6632db2

Please sign in to comment.