ci: improve the pipeline to test for the full suite
All checks were successful
/ check_lfs (push) Successful in 10s
/ check_lfs (pull_request) Successful in 8s
/ lint_fmt (pull_request) Successful in 14s
/ lint_clippy (pull_request) Successful in 16s
/ build (pull_request) Successful in 3m39s

ci: dont pull in the lfs for teh PR pipeline build
ci: checkout without LFS
ci: see if using the ref directly will help
ci: test a slight modification
ci: see if new get ldfs script works
ci: test using teh new v8
This commit is contained in:
silver 2025-07-21 00:59:48 +01:00
parent d0726169ee
commit 854e946a8f
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
2 changed files with 51 additions and 2 deletions

View file

@ -1,9 +1,7 @@
on: on:
- pull_request
- push - push
- workflow_dispatch - workflow_dispatch
jobs: jobs:
check_lfs: check_lfs:
# nix/docker # nix/docker

View file

@ -0,0 +1,51 @@
on:
- pull_request
jobs:
check_lfs:
# nix/docker
runs-on: nix
steps:
- uses: https://github.com/MPLew-is/lfs-check-action@1
# rust code must be formatted for standardisation
lint_fmt:
# build it using teh base nixos system, helps with caching
runs-on: nix
steps:
# get the repo first
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://forgejo.skynet.ie/Skynet/actions/get_lfs/nix@v8
with:
server_url: ${{ gitea.server_url }}
repository: ${{ gitea.repository }}
- run: nix build .#fmt --verbose
# clippy is incredibly useful for making yer code better
lint_clippy:
# build it using teh base nixos system, helps with caching
runs-on: nix
permissions:
checks: write
steps:
# get the repo first
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://forgejo.skynet.ie/Skynet/actions/get_lfs/nix@v8
with:
server_url: ${{ gitea.server_url }}
repository: ${{ gitea.repository }}
- run: nix build .#clippy --verbose
build:
# build it using teh base nixos system, helps with caching
runs-on: nix
needs: [ lint_fmt, lint_clippy ]
steps:
# get the repo first
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://forgejo.skynet.ie/Skynet/actions/get_lfs/nix@v8
with:
server_url: ${{ gitea.server_url }}
repository: ${{ gitea.repository }}
- name: "Build it locally"
run: nix build --verbose