From 92eb4eaca9de400be99e39d766d667bf178c4664 Mon Sep 17 00:00:00 2001 From: Grzegorz Dziadkiewicz Date: Sat, 3 Sep 2022 08:06:15 +0200 Subject: [PATCH 1/2] Add Github Actions build --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d487656 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Build and test + +env: + DOTNET_NOLOGO: true + +on: + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup .NET for main project build + uses: actions/setup-dotnet@v2 + with: + dotnet-version: | + 2.2.x + 6.0.x + - name: Run fake build script + run: ./build.sh + shell: bash \ No newline at end of file From 0274e4dcae01895f60cf2c05ef2b0114d38ef9cf Mon Sep 17 00:00:00 2001 From: Grzegorz Dziadkiewicz Date: Sat, 3 Sep 2022 08:41:48 +0200 Subject: [PATCH 2/2] Add saving of nuget package as artifact --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d487656..77a8c44 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,4 +31,9 @@ jobs: 6.0.x - name: Run fake build script run: ./build.sh - shell: bash \ No newline at end of file + shell: bash + - name: Save nuget package as artifact + uses: actions/upload-artifact@v3 + with: + name: nuget-package + path: bin/* \ No newline at end of file