|
1 |
| -name: Linux Build |
| 1 | +name: Build |
2 | 2 | # Controls when the action will run.
|
3 | 3 | on:
|
4 |
| - # Triggers the workflow on push or pull request events but only for the development branch |
| 4 | + # Triggers the workflow on push to the development or master branches |
5 | 5 | push:
|
6 |
| - branches: [ master, development ] |
7 |
| - release: |
| 6 | + branches: [master, development] |
8 | 7 | workflow_dispatch:
|
9 | 8 |
|
10 |
| - |
11 | 9 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
12 | 10 | jobs:
|
13 | 11 | # This workflow contains a single job called "build"
|
14 | 12 | build-release-linux:
|
15 | 13 | # The type of runner that the job will run on
|
16 | 14 | runs-on: ubuntu-20.04
|
17 |
| - |
| 15 | + name: Linux Release Build |
18 | 16 |
|
19 | 17 | # Steps represent a sequence of tasks that will be executed as part of the job
|
20 | 18 | steps:
|
|
77 | 75 | ./lindeploy --appdir=build/AppDir --output appimage
|
78 | 76 |
|
79 | 77 | - name: Upload Appimage
|
80 |
| - uses: actions/upload-artifact@v2 |
| 78 | + uses: actions/upload-artifact@v3 |
81 | 79 | with:
|
82 | 80 | name: CortexCommand.AppImage
|
83 | 81 | path: CortexCommand.AppImage
|
| 82 | + |
| 83 | + build-release-windows: |
| 84 | + env: |
| 85 | + # Path to the solution file relative to the root of the project. |
| 86 | + SOLUTION_FILE_PATH: RTEA.sln |
| 87 | + |
| 88 | + # Configuration type to build. |
| 89 | + # You can convert this to a build matrix if you need coverage of multiple configuration types. |
| 90 | + # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix |
| 91 | + BUILD_CONFIGURATION: "Final" |
| 92 | + |
| 93 | + runs-on: windows-latest |
| 94 | + name: Windows Release Build |
| 95 | + |
| 96 | + steps: |
| 97 | + - uses: actions/checkout@v2 |
| 98 | + |
| 99 | + - name: Add MSBuild to PATH |
| 100 | + uses: microsoft/setup-msbuild@v1 |
| 101 | + |
| 102 | + - name: Build |
| 103 | + working-directory: ${{env.GITHUB_WORKSPACE}} |
| 104 | + # Add additional options to the MSBuild command line here (like platform or verbosity level). |
| 105 | + # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference |
| 106 | + run: msbuild /m /p:Configuration="${{env.BUILD_CONFIGURATION}}" ${{env.SOLUTION_FILE_PATH}} |
| 107 | + |
| 108 | + - name: Upload Artifact |
| 109 | + uses: actions/upload-artifact@v3 |
| 110 | + with: |
| 111 | + name: Cortex Command.exe |
| 112 | + path: D:/a/Cortex-Command-Community-Project-Source/Cortex-Command-Community-Project-Data/Cortex Command x64.exe |
| 113 | + if-no-files-found: warn |
0 commit comments