Example/schedule && migrate && optimize and make long_term_review_cnt of FSRSReview public #574
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check code | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Rust Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-rust-release-v6-${{ hashFiles('Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-rust-release-v6 | |
${{ runner.os }}-rust-release | |
- name: Run checks | |
run: .github/workflows/check.sh | |
- uses: dprint/[email protected] | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Rust Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-rust-release-v5-${{ hashFiles('Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-rust-release-v5 | |
${{ runner.os }}-rust-release | |
- name: Run checks | |
run: .github/workflows/check.sh | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Rust Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-rust-release-v5-${{ hashFiles('Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-rust-release-v5 | |
${{ runner.os }}-rust-release | |
- name: install wget | |
shell: bash | |
run: choco install wget | |
- name: Run checks | |
shell: bash | |
run: .github/workflows/check.sh |