Skip to content

14题解

14题解 #64

Workflow file for this run

name: Check
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get checker hash
id: computehash
uses: seepine/hash-files@v1
with:
# The working dir for the action.
# Default: ${{ github.workspace }}
# workdir: ''
# The patterns used to match files.
patterns: 'check/**'
- name: Cache
id: cache
uses: actions/cache@v3
with:
path: check/target/release/check
key: check-build-cache-${{ steps.computehash.outputs.hash }}
- name: Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
cd check
cargo build --release
- name: Check
run: check/target/release/check