From 51b3a9039d78d36a81d26feb030de75d197324dd Mon Sep 17 00:00:00 2001 From: Andy Jewell Date: Fri, 22 Mar 2024 10:38:39 -0400 Subject: [PATCH 1/4] chore: test "dotnet pack" in CI --- .github/workflows/ci_test_net.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci_test_net.yml b/.github/workflows/ci_test_net.yml index 6fbcb9701..7fcd51187 100644 --- a/.github/workflows/ci_test_net.yml +++ b/.github/workflows/ci_test_net.yml @@ -99,6 +99,7 @@ jobs: run: | dotnet restore runtimes/net/tests dotnet build runtimes/net/tests + dotnet pack runtimes/net/DynamoDbEncryption.csproj --no-build /p:Configuration=Release --output build if [ "$RUNNER_OS" == "macOS" ]; then make test_net_mac_intel else From 3ae035115016599eaee3b0e3759ab4c4941c71c2 Mon Sep 17 00:00:00 2001 From: Andy Jewell Date: Fri, 22 Mar 2024 11:54:58 -0400 Subject: [PATCH 2/4] build first --- .github/workflows/ci_test_net.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci_test_net.yml b/.github/workflows/ci_test_net.yml index 7fcd51187..1a8c30070 100644 --- a/.github/workflows/ci_test_net.yml +++ b/.github/workflows/ci_test_net.yml @@ -99,6 +99,7 @@ jobs: run: | dotnet restore runtimes/net/tests dotnet build runtimes/net/tests + dotnet build runtimes/net /p:Configuration=Release -nowarn:CS0162,CS0168 dotnet pack runtimes/net/DynamoDbEncryption.csproj --no-build /p:Configuration=Release --output build if [ "$RUNNER_OS" == "macOS" ]; then make test_net_mac_intel From 968d1c11ed1560d64f4fb7e8db513795c8dfab6e Mon Sep 17 00:00:00 2001 From: Jose Corella Date: Fri, 22 Mar 2024 09:46:15 -0700 Subject: [PATCH 3/4] update --- .github/workflows/ci_test_net.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_test_net.yml b/.github/workflows/ci_test_net.yml index 1a8c30070..ed12f5c61 100644 --- a/.github/workflows/ci_test_net.yml +++ b/.github/workflows/ci_test_net.yml @@ -99,10 +99,16 @@ jobs: run: | dotnet restore runtimes/net/tests dotnet build runtimes/net/tests - dotnet build runtimes/net /p:Configuration=Release -nowarn:CS0162,CS0168 - dotnet pack runtimes/net/DynamoDbEncryption.csproj --no-build /p:Configuration=Release --output build if [ "$RUNNER_OS" == "macOS" ]; then make test_net_mac_intel else make test_net FRAMEWORK=net6.0 fi + + - name: Test Build and Pack ${{ matrix.library}} + shell: bash + working-directory: ./${{ matrix.library }} + run: | + dotnet build runtimes/net /p:Configuration=Release -nowarn:CS0162,CS0168 + dotnet pack runtimes/net/DynamoDbEncryption.csproj --no-build /p:Configuration=Release --output build + From 4aa053ad525a321c72ab6324ec74da2e98e5b321 Mon Sep 17 00:00:00 2001 From: Jose Corella Date: Fri, 22 Mar 2024 09:52:17 -0700 Subject: [PATCH 4/4] we only pack in ubuntu --- .github/workflows/ci_test_net.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci_test_net.yml b/.github/workflows/ci_test_net.yml index ed12f5c61..91a114911 100644 --- a/.github/workflows/ci_test_net.yml +++ b/.github/workflows/ci_test_net.yml @@ -107,6 +107,7 @@ jobs: - name: Test Build and Pack ${{ matrix.library}} shell: bash + if: matrix.os != 'windows-latest' working-directory: ./${{ matrix.library }} run: | dotnet build runtimes/net /p:Configuration=Release -nowarn:CS0162,CS0168