Skip to content

Commit

Permalink
Fixed up some ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanleomk committed Jun 24, 2024
1 parent 7e6323a commit 56e7046
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Cargo Build & Test

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
crate:
- instruct-macros
- instructor
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cd ${{ matrix.crate }} && cargo build --verbose
- run: cd ${{ matrix.crate }} && cargo test --verbose
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
File renamed without changes.
File renamed without changes.

0 comments on commit 56e7046

Please sign in to comment.