Skip to content

Simplify and remove inputs #2

Simplify and remove inputs

Simplify and remove inputs #2

name: Check upstream `lurk-rs` compiles
on:
workflow_call:
inputs:
runner:
required: false
default: 'ubuntu-latest'
type: string
jobs:
check-lurk-compiles:
if: github.event_name == 'pull_request'
runs-on: ${{ inputs.runner }}
steps:
steps:

Check failure on line 16 in .github/workflows/check-lurk-compiles.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-lurk-compiles.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
- uses: actions/checkout@v4
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/ci-env
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: lurk-lab/lurk-rs
path: ./lurk-rs
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Patch Cargo.toml
working-directory: ${{ github.workspace }}/lurk-rs
run: |
URL=https://github.com/${{ github.repository }}
# the dependency we want to patch is usually the same as the package, but
# we e.g. want to override dependency 'nova' with an 'arecibo' package
DEPENDENCY=$(grep "git = \"$URL\"" Cargo.toml | awk '{ print $1 }')
PACKAGE=$(grep "git = \"$URL\"" Cargo.toml | grep -oP 'package = "\K[^"]*'| cat)
echo "[patch.'$URL']" >> Cargo.toml
if [ ! -z "$PACKAGE" ];
then
echo "$DEPENDENCY = { path='../', package='$PACKAGE' }" >> Cargo.toml
else
echo "$DEPENDENCY = { path='../' }" >> Cargo.toml
fi
- name: Check Lurk-rs types don't break spectacularly
working-directory: ${{ github.workspace }}/lurk-rs
run: cargo check --workspace --tests --benches --examples