Skip to content

Commit

Permalink
try build cache with nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Aug 14, 2024
1 parent a278ac1 commit 1d9d1a4
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 38 additions & 0 deletions .github/workflows/nextest-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: nextest build cache

on:
pull_request:
branches: [main]
push:
branches: [ci-nextest]
schedule:
# Run this every day at 01:00 UTC.
- cron: 0 1 * * *

env:
CARGO_TERM_COLOR: always

jobs:
build-test-artifacts:
name: Build test artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# By default actions/checkout checks out a merge commit. Check out the PR head instead.
# https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.77.2
override: true
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Build and archive tests
run: cargo nextest archive --archive-file nextest-archive.tar.zst
- name: Upload archive to workflow
uses: actions/upload-artifact@v4
with:
name: nextest-archive
path: nextest-archive.tar.zst
File renamed without changes.

0 comments on commit 1d9d1a4

Please sign in to comment.