Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit f75564b

Browse files
authored
Create build.yml
1 parent ad36662 commit f75564b

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Build
7+
8+
on:
9+
push:
10+
branches: [ "master" ]
11+
pull_request:
12+
branches: [ "master" ]
13+
14+
env:
15+
# Path to the solution file relative to the root of the project.
16+
SOLUTION_FILE_PATH: .
17+
18+
# Configuration type to build.
19+
# You can convert this to a build matrix if you need coverage of multiple configuration types.
20+
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
21+
BUILD_CONFIGURATION: Release
22+
23+
permissions:
24+
contents: read
25+
26+
jobs:
27+
build:
28+
runs-on: windows-latest
29+
30+
steps:
31+
- uses: actions/checkout@v3
32+
33+
- name: Add MSBuild to PATH
34+
uses: microsoft/setup-msbuild@v1.0.2
35+
36+
- name: Build
37+
working-directory: ${{env.GITHUB_WORKSPACE}}
38+
# Add additional options to the MSBuild command line here (like platform or verbosity level).
39+
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
40+
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
41+
42+
- name: Upload artifact
43+
uses: actions/upload-artifact@v4.3.0
44+
with:
45+
name: Switchy.exe
46+
path: x64/Release/Switchy.exe

0 commit comments

Comments
 (0)