ci cleanup

This commit is contained in:
Caelan Sayler
2025-06-14 16:19:42 +01:00
committed by Caelan
parent 8cda06cfd7
commit 71dcc247b2
5 changed files with 87 additions and 29 deletions

View File

@@ -1,9 +1,21 @@
name: "Setup Job Environment"
description: "Installs dependencies like dotnet, rust, etc."
inputs:
update-dotnet:
description: 'Whether to run the setup-dotnet action'
required: false
default: 'false'
rust-cache:
description: 'Whether to run the rust-cache action'
required: false
default: 'false'
runs:
using: "composite"
steps:
- name: Setup dotnet
if: inputs.update-dotnet == 'true'
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
@@ -22,3 +34,8 @@ runs:
- name: Update Project Version
shell: pwsh
run: ./.github/set-nbgv-version.ps1
- name: Rust Cache
if: inputs.rust-cache == 'true'
uses: Swatinem/rust-cache@v2
with:
key: "${{ github.workflow }}"