From 696042ac057faec0c43ca1d732832e8abe573449 Mon Sep 17 00:00:00 2001 From: kausik-A Date: Mon, 27 Feb 2023 06:38:51 -0800 Subject: [PATCH 1/4] Add dotnet CD build workflow --- .github/workflows/ci-dotnet.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci-dotnet.yml diff --git a/.github/workflows/ci-dotnet.yml b/.github/workflows/ci-dotnet.yml new file mode 100644 index 0000000000..a5695bcfbf --- /dev/null +++ b/.github/workflows/ci-dotnet.yml @@ -0,0 +1,27 @@ +name: "Continuous Build (Java)" + +on: + push: + paths: + - 'dotnet/**' + branches: + - main + pull_request: + paths: + - 'dotnet/**' + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-dotnet@v3 + if: ${{ matrix.language == 'dotnet' }} + with: + dotnet-version: '6.0.x' + - name: Build .NET layer for arm64 + run: GOARCH="arm64" ./build.sh + - name: Build .NET layer for amd64 + run: GOARCH="amd64" ./build.sh \ No newline at end of file From 244ea2295b14e072b3a0b01df9636efbe6c6f559 Mon Sep 17 00:00:00 2001 From: kausik-A Date: Mon, 27 Feb 2023 06:39:31 -0800 Subject: [PATCH 2/4] newline --- .github/workflows/ci-dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-dotnet.yml b/.github/workflows/ci-dotnet.yml index a5695bcfbf..377d441533 100644 --- a/.github/workflows/ci-dotnet.yml +++ b/.github/workflows/ci-dotnet.yml @@ -24,4 +24,4 @@ jobs: - name: Build .NET layer for arm64 run: GOARCH="arm64" ./build.sh - name: Build .NET layer for amd64 - run: GOARCH="amd64" ./build.sh \ No newline at end of file + run: GOARCH="amd64" ./build.sh From 58f0990cc74e91a119899c8a1ae505c23ae4ea75 Mon Sep 17 00:00:00 2001 From: kausik-A Date: Mon, 27 Feb 2023 06:48:04 -0800 Subject: [PATCH 3/4] Fix workflow name --- .github/workflows/ci-dotnet.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-dotnet.yml b/.github/workflows/ci-dotnet.yml index 377d441533..322bc13413 100644 --- a/.github/workflows/ci-dotnet.yml +++ b/.github/workflows/ci-dotnet.yml @@ -1,4 +1,4 @@ -name: "Continuous Build (Java)" +name: "Continuous Build (.NET)" on: push: @@ -6,6 +6,7 @@ on: - 'dotnet/**' branches: - main + - pull_request: paths: - 'dotnet/**' From bb61cbc08c8fde427d6bd3afcf567cd332b6867a Mon Sep 17 00:00:00 2001 From: kausik-A Date: Mon, 27 Feb 2023 07:05:47 -0800 Subject: [PATCH 4/4] Add working dir path --- .github/workflows/ci-dotnet.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci-dotnet.yml b/.github/workflows/ci-dotnet.yml index 322bc13413..ea00f0ffa5 100644 --- a/.github/workflows/ci-dotnet.yml +++ b/.github/workflows/ci-dotnet.yml @@ -24,5 +24,7 @@ jobs: dotnet-version: '6.0.x' - name: Build .NET layer for arm64 run: GOARCH="arm64" ./build.sh + working-directory: "dotnet/sample-apps/aws-sdk/wrapper/SampleApps" - name: Build .NET layer for amd64 run: GOARCH="amd64" ./build.sh + working-directory: "dotnet/sample-apps/aws-sdk/wrapper/SampleApps"