Skip to content

install apt deps

install apt deps #2

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: awalsh128/cache-apt-pkgs-action@latest
with:
packages: build-essential ca-certificates clang curl git libpq-dev libssl-dev pkg-config lsof lld
version: 1.0
- 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