Net9 SDK (#3)

This commit is contained in:
Patrick Stevens
2024-12-15 22:38:48 +00:00
committed by GitHub
parent 99faa6ddb0
commit 232775cd92
6 changed files with 31 additions and 31 deletions

View File

@@ -3,7 +3,7 @@
"isRoot": true, "isRoot": true,
"tools": { "tools": {
"fantomas": { "fantomas": {
"version": "6.3.10", "version": "6.3.16",
"commands": [ "commands": [
"fantomas" "fantomas"
] ]

View File

@@ -23,16 +23,17 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup .NET - name: Install Nix
uses: actions/setup-dotnet@v3 uses: cachix/install-nix-action@v17
with: with:
dotnet-version: 7.0.x extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore run: nix develop --command dotnet restore
- name: Build - name: Build
run: dotnet build --no-restore --configuration ${{matrix.config}} run: nix develop --command dotnet build --no-restore --configuration ${{matrix.config}}
- name: Test - name: Test
run: dotnet test --no-build --verbosity normal --configuration ${{matrix.config}} run: nix develop --command dotnet test --no-build --verbosity normal --configuration ${{matrix.config}}
check-is-quine: check-is-quine:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -2,8 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<RootNamespace>Quine</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

12
flake.lock generated
View File

@@ -5,11 +5,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1710146030, "lastModified": 1731533236,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -20,11 +20,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1720768451, "lastModified": 1734119587,
"narHash": "sha256-EYekUHJE2gxeo2pM/zM9Wlqw1Uw2XTJXOSAO79ksc4Y=", "narHash": "sha256-AKU6qqskl0yf2+JdRdD0cfxX4b9x3KKV5RqA6wijmPM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7e7c39ea35c5cdd002cd4588b03a3fb9ece6fad9", "rev": "3566ab7246670a43abd2ffa913cc62dad9cdf7d5",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -14,8 +14,8 @@
pkgs = import nixpkgs {inherit system;}; pkgs = import nixpkgs {inherit system;};
projectFile = "./Quine/Quine.fsproj"; projectFile = "./Quine/Quine.fsproj";
pname = "Quine"; pname = "Quine";
dotnet-sdk = pkgs.dotnet-sdk_8; dotnet-sdk = pkgs.dotnetCorePackages.sdk_9_0;
dotnet-runtime = pkgs.dotnetCorePackages.runtime_8_0; dotnet-runtime = pkgs.dotnetCorePackages.runtime_9_0;
version = "0.0.1"; version = "0.0.1";
dotnetTool = toolName: toolVersion: hash: dotnetTool = toolName: toolVersion: hash:
pkgs.stdenvNoCC.mkDerivation rec { pkgs.stdenvNoCC.mkDerivation rec {
@@ -26,7 +26,7 @@
pname = name; pname = name;
version = version; version = version;
hash = hash; hash = hash;
installPhase = ''mkdir -p $out/bin && cp -r tools/net6.0/any/* $out/bin''; installPhase = ''mkdir -p $out/bin && cp -r tools/*/any/* $out/bin'';
}; };
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall

View File

@@ -3,7 +3,7 @@
{fetchNuGet}: [ {fetchNuGet}: [
(fetchNuGet { (fetchNuGet {
pname = "fantomas"; pname = "fantomas";
version = "6.3.10"; version = "6.3.16";
hash = "sha256-2m4YevDp9CRm/Ci2hguDXd6DUMElRg3hNAne9LHntWM="; hash = "sha256-4tRdYf+/Q1iedx+DDuIKVGlIWQdr6erM51VdKzZkhCs=";
}) })
] ]