Skip to content

Commit

Permalink
ci: update to .net 8 (#38)
Browse files Browse the repository at this point in the history
Seems like .NET 8 is not available on mac runners yet, so I will leave
it open for now
  • Loading branch information
mhmd-azeez authored Dec 14, 2023
1 parent 234610e commit 7211d58
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 28 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,10 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2

# macOS and Linux
- name: Install libextism
if: runner.os != 'Windows'
uses: ./.github/actions/libextism

# Windows
- name: Download Windows binaries
if: runner.os == 'Windows'
uses: robinraju/release-downloader@v1.8
with:
repository: 'extism/extism'
tag: latest
fileName: 'libextism-x86_64-pc-windows-msvc-main.tar.gz'
out-file-path: 'test/Extism.Sdk/bin/Debug/net7.0'
extract: true

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.x
dotnet-version: 8.x

- name: Run tests
run: |
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install libextism
if: runner.os != 'Windows'
uses: ./.github/actions/libextism

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 7.x
dotnet-version: 8.x

- name: Test .NET Sdk
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions samples/Extism.Sdk.Sample/Extism.Sdk.Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
4 changes: 2 additions & 2 deletions test/Extism.Sdk/Extism.Sdk.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Extism.runtime.all" Version="1.0.0-rc6" Condition="'$(GITHUB_ACTIONS)' == 'false'" />
<PackageReference Include="Extism.runtime.all" Version="1.0.0-rc6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Shouldly" Version="4.2.1" />
<PackageReference Include="xunit" Version="2.6.3" />
Expand Down

0 comments on commit 7211d58

Please sign in to comment.