Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
- AOT builds using NET 8
- MacOS uses v13 which is on x86
  • Loading branch information
AshleighAdams committed Aug 16, 2024
1 parent 3b56ad9 commit a59ea53
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ definitions:
5.0.x
6.x
7.x
8.x
setup-nuget: &setup-nuget
name: Setup NuGet
Expand Down Expand Up @@ -120,14 +121,14 @@ definitions:
os: ubuntu-latest
exe: verlite
- rid: osx-x64
os: macos-latest
os: macos-13
exe: verlite
steps:
- *checkout
- *setup-dotnet
- name: Publish
run: |
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:PublishAot=true -o build
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:VerliteAot=true -o build
mkdir -p artifacts
cp "build/${exe}" "artifacts/${exe}"
cd artifacts/
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Restore
run: dotnet restore
Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
os: ubuntu-latest
exe: verlite
- rid: osx-x64
os: macos-latest
os: macos-13
exe: verlite
steps:
- uses: actions/checkout@v3
Expand All @@ -97,10 +98,11 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Publish
run: |
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:PublishAot=true -o build
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:VerliteAot=true -o build
mkdir -p artifacts
cp "build/${exe}" "artifacts/${exe}"
cd artifacts/
Expand Down Expand Up @@ -136,6 +138,7 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Mutation Test
run: |
Expand Down Expand Up @@ -188,6 +191,7 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Run Integration Tests
run: |
Expand All @@ -214,6 +218,7 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Setup NuGet
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Restore
run: dotnet restore
Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
os: ubuntu-latest
exe: verlite
- rid: osx-x64
os: macos-latest
os: macos-13
exe: verlite
steps:
- uses: actions/checkout@v3
Expand All @@ -97,10 +98,11 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Publish
run: |
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:PublishAot=true -o build
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:VerliteAot=true -o build
mkdir -p artifacts
cp "build/${exe}" "artifacts/${exe}"
cd artifacts/
Expand Down Expand Up @@ -136,6 +138,7 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Mutation Test
run: |
Expand Down Expand Up @@ -188,6 +191,7 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Run Integration Tests
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Setup NuGet
run: |
Expand Down Expand Up @@ -83,7 +84,7 @@ jobs:
os: ubuntu-latest
exe: verlite
- rid: osx-x64
os: macos-latest
os: macos-13
exe: verlite
steps:
- uses: actions/checkout@v3
Expand All @@ -98,10 +99,11 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Publish
run: |
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:PublishAot=true -o build
dotnet publish -r "${rid}" -c Release src/Verlite.CLI/Verlite.CLI.csproj -p:VerliteAot=true -o build
mkdir -p artifacts
cp "build/${exe}" "artifacts/${exe}"
cd artifacts/
Expand Down Expand Up @@ -139,6 +141,7 @@ jobs:
5.0.x
6.x
7.x
8.x
- name: Setup NuGet
run: |
Expand Down
6 changes: 5 additions & 1 deletion src/Verlite.CLI/Verlite.CLI.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Condition="'$(VerliteAot)'=='true'">
<PublishAot>true</PublishAot>
</PropertyGroup>

<PropertyGroup Condition="'$(PublishAot)'!='true'">
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFrameworks>netcoreapp2.1;net5.0;</TargetFrameworks>
Expand All @@ -8,7 +12,7 @@
<PropertyGroup Condition="'$(PublishAot)'=='true'">
<TargetName>verlite</TargetName>
<TargetExtension>elf</TargetExtension>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<SelfContained>true</SelfContained>
<TrimMode>Link</TrimMode>
<RootAllApplicationAssemblies>false</RootAllApplicationAssemblies>
Expand Down

0 comments on commit a59ea53

Please sign in to comment.