Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
ci: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
a01sa01to committed Apr 24, 2024
1 parent 4ae19fe commit 17d3245
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/rime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,26 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Enumerate Problems
id: problems
run: |
problems=$(ls -d */ | grep -v _common | tr -d '/')
echo "Problems: $problems"
echo "problems=$problems" >> $GITHUB_OUTPUT
- name: Cache Rime
uses: actions/cache@v4
with:
path: ./*/rime-out/**
key: rime
- name: Run Tests
run: |
directories=$(ls -d */)
for directory in $directories; do
dirname=$(basename $directory)
if [[ $dirname == "_common" ]]; then
continue
fi
echo ::group::$dirname
rime test $dirname
for prob in ${{ steps.problems.outputs.problems }}; do
echo ::group::$prob
rime test $prob
echo ::endgroup::
done

0 comments on commit 17d3245

Please sign in to comment.