Skip to content

Commit

Permalink
(algo): add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchanns committed May 6, 2023
1 parent 7a8d72b commit 92d890a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/algo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: algo
on:
push:
branches:
- main
paths:
- 'algo/**'
- '.github/workflows/algo.yml'
jobs:
test:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: algo
steps:
- uses: actions/checkout@v2
- name: Install Latest Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run Tests
run: cargo test

0 comments on commit 92d890a

Please sign in to comment.