Move CI workflow to buildjet

This commit is contained in:
Zed 2023-11-01 05:09:21 +00:00
parent 623424f516
commit e1838e0933
1 changed files with 7 additions and 5 deletions

View File

@ -10,24 +10,26 @@ on:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: buildjet-2vcpu-ubuntu-2204
strategy: strategy:
matrix: matrix:
nim: nim:
- "1.6.10" - "1.6.10"
- "1.6.x" - "1.6.x"
- "2.0.x" - "2.0.x"
- "devel"
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Cache nimble - name: Cache nimble
id: cache-nimble id: cache-nimble
uses: actions/cache@v3 uses: buildjet/cache@v3
with: with:
path: ~/.nimble path: ~/.nimble
key: nimble-${{ hashFiles('*.nimble') }} key: ${{ matrix.nim }}-nimble-${{ hashFiles('*.nimble') }}
restore-keys: "nimble-" restore-keys: |
${{ matrix.nim }}-nimble-
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: "3.10"
@ -51,4 +53,4 @@ jobs:
- name: Run tests - name: Run tests
run: | run: |
./nitter & ./nitter &
pytest -n4 tests pytest -n8 tests