Clear some clippy::pedantic pings (#120) #282
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
# This makes sure to only run one instance of this workflow per individual PR and pushes. | |
# We need this especially for the release step, because it has side effects. | |
# But it's also good in general, there's no need to finish action runs for commits | |
# when you push another one right after. | |
# Assumption: We push less frequently than it takes for this workflow to finish | |
concurrency: | |
# For a push to the main branch, github.ref is refs/heads/<branch_name> | |
# For a pull request, github.ref is refs/pull/<pr_number>/merge | |
group: ${{ github.ref }} | |
# We don't want to cancel in progress workflows for pushes to the main branch, | |
# because it could be in the process of doing a release. | |
# Better wait until it's done | |
cancel-in-progress: ${{ github.event_name != 'pull' }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@V27 | |
- name: build | |
run: nix-build -A ci | |
- name: release | |
if: ${{ github.event_name == 'push' }} | |
run: scripts/release.sh | |
env: | |
GH_TOKEN: ${{ github.token }} | |
# Make sure that all links in Markdown documents are valid | |
xrefcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# While this has a Nix build available, it needs to evaluate and build so much | |
# that I don't think it's worth adding it to the nix-build. | |
- uses: serokell/xrefcheck-action@v1 |