Skip to content

Bump incompatible dependencies #428

Bump incompatible dependencies

Bump incompatible dependencies #428

Workflow file for this run

name: check
permissions:
contents: read
on:
push:
pull_request:
workflow_dispatch:
inputs:
ref:
description: "The ref (branch or SHA) to process"
required: false
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash -xe {0}
jobs:
fmt:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.inputs.ref }} # Use the ref if provided, otherwise defaults to the current branch/commit
- uses: nixbuild/nix-quick-install-action@v34
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_conf: |
extra-substituters = https://obeli-sk.cachix.org
extra-trusted-public-keys = obeli-sk.cachix.org-1:31iM9GWSEhAXvvuTWQ7CvAcwvgRzsuJ9yJghywSd3Jw=
- name: Populate the nix store
run: |
nix develop .#noObelisk --command echo
- name: cargo fmt
run: nix develop .#noObelisk --command cargo fmt --check
check-dev-deps:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v34
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_conf: |
extra-substituters = https://obeli-sk.cachix.org
extra-trusted-public-keys = obeli-sk.cachix.org-1:31iM9GWSEhAXvvuTWQ7CvAcwvgRzsuJ9yJghywSd3Jw=
- name: Populate the nix store
run: |
nix develop --command echo
- run: nix develop --command ./scripts/dev-deps.sh
- run: cat dev-deps.txt
- run: |
if git diff --quiet -- dev-deps.txt; then
echo "No changes in dev-deps"
else
echo "Changes in dev-deps detected:"
echo "$(git diff -- dev-deps.txt)"
exit 1
fi
clippy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v34
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_conf: |
extra-substituters = https://obeli-sk.cachix.org
extra-trusted-public-keys = obeli-sk.cachix.org-1:31iM9GWSEhAXvvuTWQ7CvAcwvgRzsuJ9yJghywSd3Jw=
- name: Populate the nix store
run: |
nix develop .#noObelisk --command echo
- name: cargo clippy
run: nix develop .#noObelisk --command cargo clippy --workspace --all-targets -- -D warnings
check-wit-deps:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v34
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_conf: |
extra-substituters = https://obeli-sk.cachix.org
extra-trusted-public-keys = obeli-sk.cachix.org-1:31iM9GWSEhAXvvuTWQ7CvAcwvgRzsuJ9yJghywSd3Jw=
- name: Populate the nix store
run: |
nix develop --command echo
- run: nix develop --command scripts/check-wit-deps.sh
- run: cat dev-deps.txt
- run: |
if git diff --quiet ; then
echo "No changes"
else
echo "Changes in wit-deps detected:"
git diff
exit 1
fi
check-oci-references:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: nixbuild/nix-quick-install-action@v34
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_conf: |
extra-substituters = https://obeli-sk.cachix.org
extra-trusted-public-keys = obeli-sk.cachix.org-1:31iM9GWSEhAXvvuTWQ7CvAcwvgRzsuJ9yJghywSd3Jw=
- name: Populate the nix store
run: |
nix develop --command echo
- run: nix develop --command ./scripts/ci/check-oci-references.sh