Skip to content

feat: add more build targets #36

feat: add more build targets

feat: add more build targets #36

Workflow file for this run

name: Test Builds for Multiple Targets
on:
pull_request:
types: [opened]
branches:
- main
paths:
- '**.fs'
- '.github/workflows/multiple_builds.yml'
- '**/packages.lock.json'
push:
paths:
- '**.fs'
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
PROJECT_NAME: HODI
TARGET_FRAMEWORK: 'netstandard2.1'
RELEASE_OS: 'ubuntu-latest'
RELEASE_DOTNET_VERSION: 6.0.X
jobs:
build-targets:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
dotnet: [ '6.0.x', '7.0.x', '8.0.0-preview.7.23376.3' ]
name: Dotnet ${{ matrix.dotnet }} ${{ matrix.os }} Runner
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore Dependencies
run: |
dotnet restore src/${{ env.PROJECT_NAME }}
- name: Build
run: |
dotnet build --no-restore --configuration Release --verbosity quiet src/${{ env.PROJECT_NAME }}