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

Commit 9a28515

Browse files
authored
Merge pull request #463 from cortex-command-community/cf/461-prepare-existing-build-workflows-to-trigger-releases
Cf/461 Prepare existing build workflows to trigger releases
2 parents 20e591d + a7da0db commit 9a28515

File tree

3 files changed

+49
-64
lines changed

3 files changed

+49
-64
lines changed

.github/workflows/meson.yml renamed to .github/workflows/build.yaml

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
name: Linux Build
1+
name: Build
22
# Controls when the action will run.
33
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
55
push:
6-
branches: [ master, development ]
7-
release:
6+
branches: [master, development]
87
workflow_dispatch:
98

10-
119
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1210
jobs:
1311
# This workflow contains a single job called "build"
1412
build-release-linux:
1513
# The type of runner that the job will run on
1614
runs-on: ubuntu-20.04
17-
15+
name: Linux Release Build
1816

1917
# Steps represent a sequence of tasks that will be executed as part of the job
2018
steps:
@@ -77,7 +75,39 @@ jobs:
7775
./lindeploy --appdir=build/AppDir --output appimage
7876
7977
- name: Upload Appimage
80-
uses: actions/upload-artifact@v2
78+
uses: actions/upload-artifact@v3
8179
with:
8280
name: CortexCommand.AppImage
8381
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

.github/workflows/build-check.yml renamed to .github/workflows/ci.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
name: Compile check
1+
name: Continuous Integration
22

3-
# Controls when the action will run.
43
on:
5-
# Triggers the workflow on push or pull request events but only for the development branch
6-
push:
7-
branches: [master, development]
4+
# Triggers the workflow on all pull request events
85
pull_request:
9-
types: [opened, reopened, ready_for_review, synchronize]
106

117
workflow_dispatch:
128

139
jobs:
1410
build-linux:
1511
# The type of runner that the job will run on
1612
runs-on: ubuntu-20.04
17-
13+
name: Linux Build
1814

1915
# Steps represent a sequence of tasks that will be executed as part of the job
2016
steps:
@@ -67,16 +63,16 @@ jobs:
6763
BUILD_CONFIGURATION: "Final"
6864

6965
runs-on: windows-latest
66+
name: Windows Build
7067

7168
steps:
72-
- uses: actions/checkout@v2
73-
74-
- name: Add MSBuild to PATH
75-
uses: microsoft/setup-msbuild@v1
69+
- uses: actions/checkout@v2
7670

71+
- name: Add MSBuild to PATH
72+
uses: microsoft/setup-msbuild@v1
7773

78-
- name: Build
79-
working-directory: ${{env.GITHUB_WORKSPACE}}
80-
# Add additional options to the MSBuild command line here (like platform or verbosity level).
81-
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
82-
run: msbuild /m /p:Configuration="${{env.BUILD_CONFIGURATION}}" ${{env.SOLUTION_FILE_PATH}}
74+
- name: Build
75+
working-directory: ${{env.GITHUB_WORKSPACE}}
76+
# Add additional options to the MSBuild command line here (like platform or verbosity level).
77+
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
78+
run: msbuild /m /p:Configuration="${{env.BUILD_CONFIGURATION}}" ${{env.SOLUTION_FILE_PATH}}

.github/workflows/msbuild.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)