From 071e384c9f96e19a2c09f4c4550b488860126c3b Mon Sep 17 00:00:00 2001 From: mariusz-suchodolski Date: Wed, 16 Oct 2024 23:51:05 +0200 Subject: [PATCH 1/2] Initial Github Action for generating build artifacts from solution --- .github/workflows/msbuild.yml | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/msbuild.yml diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 0000000..0003848 --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,53 @@ +name: Build artifacts from master branch with MSBuild + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + +permissions: + contents: read + +jobs: + build: + + strategy: + matrix: + # configuration: [debug, release] + configuration: [release] + platform: [x64, x86, arm64] + fail-fast: false + + env: + SOLUTION_FILE_PATH: src/Shell.sln + BUILD_CONFIGURATION: ${{matrix.configuration}} + BUILD_PLATFORM: ${{matrix.platform}} + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Restore NuGet packages + working-directory: ${{env.GITHUB_WORKSPACE}} + run: nuget restore ${{env.SOLUTION_FILE_PATH}} + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{env.BUILD_PLATFORM}} ${{env.SOLUTION_FILE_PATH}} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: artifact-${{matrix.configuration}}-${{matrix.platform}} + path: D:\a\nilesoft-shell\nilesoft-shell\src\bin\release\* + if-no-files-found: warn + retention-days: 0 + compression-level: 6 + overwrite: false + include-hidden-files: true From 690c2c65c8692d6d60d16dfe0d3d4224058284b2 Mon Sep 17 00:00:00 2001 From: Mariusz Suchodolski Date: Thu, 17 Oct 2024 00:10:46 +0200 Subject: [PATCH 2/2] README.md: add badges for "nightly" builds --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index dd217a7..93f3bd0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ [![Ceasefire Now](https://badge.techforpalestine.org/default)](https://techforpalestine.org/learn-more) +[![Build artifacts from master branch with MSBuild](../../actions/workflows/msbuild.yml/badge.svg)](../../actions/workflows/msbuild.yml) + +[![Latest nightly build](https://img.shields.io/badge/download%20latest%20nightly%20build-nightly.link-purple)](https://nightly.link/moudey/Shell/workflows/msbuild/main) + # [Shell](https://nilesoft.org) Powerful manager for Windows File Explorer context menu.