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

Commit baa57a2

Browse files
committed
Remove sanity check and reorder steps, revert to using step outputs rather than env variables
1 parent 90b05a7 commit baa57a2

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

.github/workflows/msbuild.yml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ on:
3434
env:
3535
# Path to the solution file relative to the root of the project.
3636
SOLUTION_FILE_PATH: RTEA.sln
37-
# NAME_MAPPING: |
38-
# "{"Final\": \"Cortex Command.exe\",
39-
# \"Debug Release\": \"Cortex Command.debug.release.exe\",
40-
# \"Debug Minimal\": \"Cortex Command.debug.minimal.exe\",
41-
# \"Debug Full\": \"Cortex Command.debug.full.exe\"}"
42-
EXECUTABLE_NAME: "Cortex Command.exe"
43-
4437
NAME_MAPPING: |
4538
{"Final": "Cortex Command.exe",
4639
"Debug Release": "Cortex Command.debug.release.exe",
@@ -55,26 +48,6 @@ jobs:
5548
steps:
5649
- uses: actions/checkout@v3
5750

58-
- name: Set color
59-
id: random-color-generator
60-
run: echo "SELECTED_COLOR=green" >> $GITHUB_OUTPUT
61-
shell: bash
62-
63-
- name: Get color
64-
run: echo "The selected color is ${{ steps.random-color-generator.outputs.SELECTED_COLOR }}"
65-
shell: bash
66-
67-
- name: Determine executable name
68-
id: executable_name
69-
if: ${{inputs.upload_artefacts}}
70-
run: |
71-
echo "EXECUTABLE_NAME=${{ fromJson(env.NAME_MAPPING)[inputs.build_configuration] }}" >> "$GITHUB_ENV"
72-
shell: bash
73-
74-
- run: |
75-
echo "${{ env.EXECUTABLE_NAME }}"
76-
shell: bash
77-
7851
- name: Add MSBuild to PATH
7952
uses: microsoft/setup-msbuild@v1
8053

@@ -84,6 +57,13 @@ jobs:
8457
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
8558
run: msbuild /m /p:Configuration="${{inputs.build_configuration}}" ${{env.SOLUTION_FILE_PATH}}
8659

60+
- name: Determine executable name
61+
id: executable_name
62+
if: ${{inputs.upload_artefacts}}
63+
run: |
64+
echo "EXECUTABLE_NAME=${{ fromJson(env.NAME_MAPPING)[inputs.build_configuration] }}" >> "$GITHUB_OUTPUT"
65+
shell: bash
66+
8767
- name: Upload Artifact
8868
if: ${{inputs.upload_artefacts}}
8969
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)