Skip to content

Commit

Permalink
Merge branch 'main' into paulm-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
gbakeman committed Apr 12, 2024
2 parents b0c9041 + d74b271 commit 92709d1
Show file tree
Hide file tree
Showing 26 changed files with 2,154 additions and 1,933 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# name: build-release-$(git rev-parse --short "$GITHUB_SHA")
run-name: Build-Release Num. ${{ github.run_number }}

on:
workflow_dispatch:
# inputs:
# configuration:
# description: 'Compiler configuration preset'
# required: false
# default: 'Debug'
# pull_request:
# branches: [ main ]
# paths:
# - '**.vb'
# - '**.vbproj'
# - '**.cs'
# - '**.csproj'
# - '**.resx'

env:
DOTNET_VERSION: '4.7.2' # The .NET SDK version to use
SLN_FILE: AGauge/AGauge.sln
OUTPUT: AGauge/bin/Release
CONFIG: Release

jobs:
build:

name: debug-build-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest] # Should have MSBuild.
steps:
# Make MSBuild available from $PATH.
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1

- name: Checkout Code
uses: actions/checkout@v3

# - name: Restore Packages
# run: msbuild -t:restore

- name: Build solution
run: msbuild $env:SLN_FILE -p:Configuration=$env:CONFIG

- name: Get AssemblyVersion generated by msbuild
id: getversion
uses: berglie/assembly-version/get@v1
with:
directory: ${{ env.OUTPUT }}

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ format('AGauge-v{0}', steps.getversion.outputs.version) }}
if-no-files-found: error
path: ${{ env.OUTPUT }}

Loading

0 comments on commit 92709d1

Please sign in to comment.