Skip to content

Commit

Permalink
Merge pull request #534 from mariusz-suchodolski/main
Browse files Browse the repository at this point in the history
Add shell of CI/CD with GH Actions
  • Loading branch information
moudey authored Oct 17, 2024
2 parents 2f966c4 + 690c2c6 commit 6b750a0
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit 6b750a0

Please sign in to comment.