Skip to content

Commit

Permalink
Fixing typos in CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutomi committed Feb 26, 2024
1 parent cd3f1f7 commit 33efe09
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,28 @@ jobs:

- name: Set the TFM for .NET 6.0 in Windows
if: matrix.dotnet == '6.0.x' && startsWith(matrix.os, 'windows')
run: echo "DOTNET_TFM=net6.0-windows" | Out-File -FilePath $env:GITHUB_ENV -Append
run: echo "DOTNET_TFM=net6.0" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Set the TFM for .NET 7.0 in Ubuntu
if: matrix.dotnet == '7.0.x' && startsWith(matrix.os, 'ubuntu')
run: echo "DOTNET_TFM=net7.0" >> $GITHUB_ENV

- name: Set the TFM for .NET 7.0 in Windows
if: matrix.dotnet == '7.0.x' && startsWith(matrix.os, 'windows')
run: echo "DOTNET_TFM=net7.0-windows" | Out-File -FilePath $env:GITHUB_ENV -Append
run: echo "DOTNET_TFM=net7.0" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Set the TFM for .NET 8.0 in Ubuntu
if: matrix.dotnet == '8.0.x' && startsWith(matrix.os, 'ubuntu')
run: echo "DOTNET_TFM=net8.0" >> $GITHUB_ENV

- name: Set the TFM for .NET 8.0 in Windows
if: matrix.dotnet == '8.0.x' && startsWith(matrix.os, 'windows')
run: echo "DOTNET_TFM=net8.0-windows" | Out-File -FilePath $env:GITHUB_ENV -Append
run: echo "DOTNET_TFM=net8.0" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Restore dependencies
run: dotnet restore

- name: Build
if: startsWith(matrix.os, 'ubuntu')
run: dotnet build --no-restore -c Release -f ${{ env.DOTNET_TFM }}

- name: Test
Expand Down

0 comments on commit 33efe09

Please sign in to comment.