diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b149906a..df87f4ad 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,6 +15,8 @@ jobs: - name: setup-dotnet uses: actions/setup-dotnet@v4 + with: + cache: true - name: Cache NuGet packages uses: actions/cache@v4 @@ -42,6 +44,8 @@ jobs: # setup dotnet based on global.json - name: setup-dotnet uses: actions/setup-dotnet@v4 + with: + cache: true # cache NuGet packages to avoid re-downloading on every run - name: Cache NuGet packages diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index fb7ed988..71799718 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -18,6 +18,9 @@ jobs: # setup dotnet based on global.json - name: setup-dotnet uses: actions/setup-dotnet@v4 + with: + cache: true + # cache NuGet packages to avoid re-downloading on every run - name: Cache NuGet packages uses: actions/cache@v4 @@ -25,6 +28,7 @@ jobs: path: ~/.nuget/packages key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', '**/*.csproj', 'global.json') }} restore-keys: nuget-${{ runner.os }}- + # build it, test it, pack it - name: Run dotnet build (release) # see issue #105 @@ -44,6 +48,9 @@ jobs: # setup dotnet based on global.json - name: setup-dotnet uses: actions/setup-dotnet@v4 + with: + cache: true + # cache NuGet packages to avoid re-downloading on every run - name: Cache NuGet packages uses: actions/cache@v4 @@ -51,6 +58,7 @@ jobs: path: ~/.nuget/packages key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', '**/*.csproj', 'global.json') }} restore-keys: nuget-${{ runner.os }}- + # build it, test it, pack it - name: Run dotnet test - release # see issue #105 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7bdd5f29..04fd12ea 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -22,6 +22,8 @@ jobs: # setup dotnet based on global.json - name: setup-dotnet uses: actions/setup-dotnet@v4 + with: + cache: true # build it, test it, pack it, publish it - name: Run dotnet build (release, for nuget) # see issue #105 and #243 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d2e637c0..2d790d96 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,6 +16,8 @@ jobs: # setup dotnet based on global.json - name: setup-dotnet uses: actions/setup-dotnet@v4 + with: + cache: true # cache NuGet packages to avoid re-downloading on every run - name: Cache NuGet packages @@ -54,6 +56,8 @@ jobs: # setup dotnet based on global.json - name: setup-dotnet uses: actions/setup-dotnet@v4 + with: + cache: true # cache NuGet packages to avoid re-downloading on every run - name: Cache NuGet packages