Skip to content

removed unnecessary matrix check #13

removed unnecessary matrix check

removed unnecessary matrix check #13

name: Agent Builds
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
configuration: [Release]
os: [ubuntu-latest, macos-latest, windows-latest]
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: Agent.sln # Replace with your solution name, i.e. MyWpfApp.sln.
Solution_Path: Athena\Payload_Type\athena\athena\agent_code\Agent\
Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
Wap_Project_Directory: your-wap-project-directory-name # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package.
Wap_Project_Path: your-wap-project-path # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj.
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.406
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
#- name: Setup MSBuild.exe
# uses: microsoft/[email protected]
# Execute all unit tests in the solution
#- name: Execute unit tests
# run: dotnet test
- name: Build Agent Linux
if: matrix.os == 'ubuntu-latest'
run: dotnet publish Payload_Type/athena/athena/agent_code/Agent.sln -c Release /p:LinuxTest=True
- name: Build Agent MacOS
if: matrix.os == 'macos-latest'
run: dotnet publish Payload_Type/athena/athena/agent_code/Agent.sln -c Release /p:MacTest=True
- name: Build Agent Windows
if: matrix.os == 'windows-latest'
run: dotnet publish Payload_Type\athena\athena\agent_code\Agent.sln -c Release /p:WindowsTest=True
# Restore the application to populate the obj folder with RuntimeIdentifiers
#- name: Restore the application
# run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
# env:
# Configuration: ${{ matrix.configuration }}