Skip to content

Commit

Permalink
Yet another fix for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
b-straub committed Apr 27, 2024
1 parent 7c6a265 commit b329627
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 19 deletions.
47 changes: 32 additions & 15 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,46 @@ on:
- "**"

jobs:
build:
job1:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup .NET 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
steps:
- uses: actions/checkout@v4

- name: Setup .NET 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
job2:
name: BuildDexieNET
runs-on: ubuntu-latest
needs: job1

steps:
- name: BuildDexieNET
run: dotnet build DexieNET/DexieNET.csproj -c Release

job3:
name: BuildDexieCloudNET
runs-on: ubuntu-latest
needs: [job1, job2]

steps:
- name: BuildDexieCloudNET
run: dotnet build DexieNET/DexieCloudNET.csproj -c Release
run: dotnet build DexieCloudNET/DexieCloudNET.csproj -c Release

- name: Build
run: dotnet build -c Release

job4:
name: BuildDexieNET
runs-on: ubuntu-latest
needs: [job1, job2, job3]

steps:
- name: Test
run: dotnet test -c Release
2 changes: 1 addition & 1 deletion .github/workflows/PublishNuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

env:
NuGetDirectory: ${{ github.workspace}}/Nuget
NuGetDirectory: ${{ github.workspace}}/.nuget

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ DexieCloudNET/yarn/node_modules
DexieCloudNET/yarn/src/**/*.js
DexieCloudNET/wwwroot/
DexieCloudNET/yarn/src/DexieNET
.nuget
2 changes: 1 addition & 1 deletion DexieCloudNET/DexieCloudNET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageTags>Dexie, Dexie Cloud, IndexedDB</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageOutputPath>..\Nuget</PackageOutputPath>
<PackageOutputPath>..\.nuget</PackageOutputPath>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion DexieNET/DexieNET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageTags>Dexie, IndexedDB</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageOutputPath>..\Nuget</PackageOutputPath>
<PackageOutputPath>..\.nuget</PackageOutputPath>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<configuration>
<packageSources>
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="local" value="Nuget" />
<add key="local" value=".nuget" />
</packageSources>
</configuration>

0 comments on commit b329627

Please sign in to comment.